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

Unified Diff: chrome/browser/profiles/profile_info_cache.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/profiles/profile_info_cache.cc
diff --git a/chrome/browser/profiles/profile_info_cache.cc b/chrome/browser/profiles/profile_info_cache.cc
index 347254da18483498814d158324c918e98627485c..5ea0459421a6f6feb4a01ff9b905996f002d8925 100644
--- a/chrome/browser/profiles/profile_info_cache.cc
+++ b/chrome/browser/profiles/profile_info_cache.cc
@@ -175,7 +175,7 @@ ProfileInfoCache::ProfileInfoCache(PrefService* prefs,
for (DictionaryValue::key_iterator it = cache->begin_keys();
it != cache->end_keys(); ++it) {
std::string key = *it;
- DictionaryValue* info = NULL;
+ const DictionaryValue* info = NULL;
cache->GetDictionary(key, &info);
string16 name;
info->GetString(kNameKey, &name);
@@ -713,7 +713,7 @@ const DictionaryValue* ProfileInfoCache::GetInfoForProfileAtIndex(
DCHECK_LT(index, GetNumberOfProfiles());
const DictionaryValue* cache =
prefs_->GetDictionary(prefs::kProfileInfoCache);
- DictionaryValue* info = NULL;
+ const DictionaryValue* info = NULL;
cache->GetDictionary(sorted_keys_[index], &info);
return info;
}
@@ -782,7 +782,7 @@ std::vector<string16> ProfileInfoCache::GetProfileNames() {
for (base::DictionaryValue::key_iterator it = cache->begin_keys();
it != cache->end_keys();
++it) {
- base::DictionaryValue* info = NULL;
+ const base::DictionaryValue* info = NULL;
cache->GetDictionary(*it, &info);
info->GetString(kNameKey, &name);
names.push_back(name);
« no previous file with comments | « chrome/browser/printing/print_job_worker.cc ('k') | chrome/browser/ui/webui/print_preview/print_preview_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698