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

Unified Diff: chrome/browser/search_engines/template_url_prepopulate_data.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: David's comments 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/search_engines/template_url_prepopulate_data.cc
diff --git a/chrome/browser/search_engines/template_url_prepopulate_data.cc b/chrome/browser/search_engines/template_url_prepopulate_data.cc
index 82da8f672b0ef4e46bef41667f94e0d11c05b77b..acd3089701c70accc981e12cdad80915b2971c9b 100644
--- a/chrome/browser/search_engines/template_url_prepopulate_data.cc
+++ b/chrome/browser/search_engines/template_url_prepopulate_data.cc
@@ -3364,8 +3364,8 @@ void GetPrepopulatedTemplateFromPrefs(Profile* profile,
size_t num_engines = list->GetSize();
for (size_t i = 0; i != num_engines; ++i) {
- Value* val;
- DictionaryValue* engine;
+ const Value* val;
+ const DictionaryValue* engine;
if (list->GetDictionary(i, &engine) &&
engine->Get("name", &val) && val->GetAsString(&name) &&
engine->Get("keyword", &val) && val->GetAsString(&keyword) &&
« no previous file with comments | « chrome/browser/printing/print_job_worker.cc ('k') | chrome/browser/sync/invalidations/invalidator_storage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698