Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(732)

Unified Diff: chrome/browser/chromeos/cros/onc_network_parser.cc

Issue 10837044: Correct const accessors in base/values.(h|cc), Part II (ListValue) (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/cros/onc_network_parser.cc
diff --git a/chrome/browser/chromeos/cros/onc_network_parser.cc b/chrome/browser/chromeos/cros/onc_network_parser.cc
index 86376d6bb89194b9255293523e0d21ae8fea2650..26d722a7da27fb8608871911c5114099aad437f9 100644
--- a/chrome/browser/chromeos/cros/onc_network_parser.cc
+++ b/chrome/browser/chromeos/cros/onc_network_parser.cc
@@ -1941,7 +1941,7 @@ bool OncVirtualNetworkParser::ParseOpenVPNValue(OncNetworkParser* parser,
// today. So extract the first.
const base::ListValue* value_list = NULL;
value.GetAsList(&value_list);
- base::Value* first_item = NULL;
+ const base::Value* first_item = NULL;
if (!value_list->Get(0, &first_item) ||
!first_item->IsType(base::Value::TYPE_STRING)) {
VLOG(1) << "RemoteCertKU must be non-empty list of strings";

Powered by Google App Engine
This is Rietveld 408576698