aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis Hector Chavez <lhchavez@google.com>2016-07-19 14:34:01 -0700
committerLuis Hector Chavez <lhchavez@google.com>2016-07-19 14:41:13 -0700
commita7054911b8cb65c65ddc4f3548ad6515a1f778f2 (patch)
tree7feafbc76dc0dd842b86d89bc18b1199316f0564
parent37af68a2d3b3b94adfee731750fc939cc0f3f154 (diff)
downloadwebservd-a7054911b8cb65c65ddc4f3548ad6515a1f778f2.tar.gz
webservd: 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 from libchrome: - base::ListValue::iterator now exposes std::unique_ptr<base::Value> instead of raw base::Value*. Bug: 29104761 Change-Id: I01a79fec3329bc0155a8f119e25854b094082aec
-rw-r--r--webservd/config.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/webservd/config.cc b/webservd/config.cc
index 62e512c..5080632 100644
--- a/webservd/config.cc
+++ b/webservd/config.cc
@@ -140,7 +140,7 @@ bool LoadConfigFromString(const std::string& config_json,
const base::ListValue* protocol_handlers = nullptr; // Owned by |dict_value|
if (dict_value->GetList(kProtocolHandlersKey, &protocol_handlers)) {
- for (base::Value* handler_value : *protocol_handlers) {
+ for (const auto& handler_value : *protocol_handlers) {
const base::DictionaryValue* handler_dict = nullptr; // Owned by
// |dict_value|
if (!handler_value->GetAsDictionary(&handler_dict)) {