aboutsummaryrefslogtreecommitdiff
path: root/src/privet/privet_handler.cc
diff options
context:
space:
mode:
authorLuis Hector Chavez <lhchavez@google.com>2016-07-18 16:08:56 -0700
committerLuis Hector Chavez <lhchavez@google.com>2016-07-22 18:21:09 +0000
commit17f710e0eccdb78996c6e3ee65b03d43c18e1d8b (patch)
tree8ad4bf145f87a298e2e50688814c8a664577d635 /src/privet/privet_handler.cc
parent637be7990843742d7ac6910ea909dcb09e9df175 (diff)
downloadlibweave-17f710e0eccdb78996c6e3ee65b03d43c18e1d8b.tar.gz
libweave: Update libchrome APIs to r405848
The new libchrome has been ported from Chromium and some APIs have changed. Make necessary changes at call sites. Notable changes are: - base::Bind() now explicitly disallows captures in lambdas (which was never allowed in the style guide). - base::ListValue::iterator now exposes std::unique_ptr<base::Value> instead of raw base::Value*. BUG=29104761 TEST=All tests in libweave_test pass on dragonboard-eng build TEST=make testall Change-Id: Ifb2d4f83f9f92b8ded5f12ac1c622e8ab5549b7d Reviewed-on: https://weave-review.googlesource.com/4185 Reviewed-by: Robert Ginda <rginda@google.com>
Diffstat (limited to 'src/privet/privet_handler.cc')
-rw-r--r--src/privet/privet_handler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/privet/privet_handler.cc b/src/privet/privet_handler.cc
index ada9f44..2452fc5 100644
--- a/src/privet/privet_handler.cc
+++ b/src/privet/privet_handler.cc
@@ -897,7 +897,7 @@ void PrivetHandler::HandleComponents(const base::DictionaryValue& input,
input.GetString(kPathKey, &path);
const base::ListValue* filter_items = nullptr;
if (input.GetList(kFilterKey, &filter_items)) {
- for (const base::Value* value : *filter_items) {
+ for (const auto& value : *filter_items) {
std::string filter_item;
if (value->GetAsString(&filter_item))
filter.insert(filter_item);