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

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

Issue 10834004: Correct const accessors in base/values.(h|cc) (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Reverting webdriver:Command::parameters_ to const 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/native_network_parser.cc
diff --git a/chrome/browser/chromeos/cros/native_network_parser.cc b/chrome/browser/chromeos/cros/native_network_parser.cc
index cbc393e9a757b0697004fd36eb389c3accdaf1fb..79740c42f70c8103b9593cd3b621e2c12ff0d8ed 100644
--- a/chrome/browser/chromeos/cros/native_network_parser.cc
+++ b/chrome/browser/chromeos/cros/native_network_parser.cc
@@ -551,7 +551,7 @@ bool NativeNetworkDeviceParser::ParseSimLockStateFromDictionary(
std::string state_string;
// Since RetriesLeft is sent as a uint32, which may overflow int32 range, from
// Flimflam, it may be stored as an integer or a double in DictionaryValue.
- base::Value* retries_value = NULL;
+ const base::Value* retries_value = NULL;
if (!info.GetString(flimflam::kSIMLockTypeProperty, &state_string) ||
!info.GetBoolean(flimflam::kSIMLockEnabledProperty, out_enabled) ||
!info.Get(flimflam::kSIMLockRetriesLeftProperty, &retries_value) ||
@@ -1289,7 +1289,7 @@ bool NativeVirtualNetworkParser::ParseValue(PropertyIndex index,
for (DictionaryValue::key_iterator iter = dict.begin_keys();
iter != dict.end_keys(); ++iter) {
const std::string& key = *iter;
- base::Value* provider_value;
+ const base::Value* provider_value;
bool res = dict.GetWithoutPathExpansion(key, &provider_value);
DCHECK(res);
if (res) {
« no previous file with comments | « chrome/browser/chromeos/cros/certificate_pattern.cc ('k') | chrome/browser/chromeos/cros/network_library_impl_cros.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698