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

Unified Diff: chrome/browser/content_settings/content_settings_pref_provider.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/content_settings/content_settings_pref_provider.cc
diff --git a/chrome/browser/content_settings/content_settings_pref_provider.cc b/chrome/browser/content_settings/content_settings_pref_provider.cc
index d19fdb3d9489071bc18d2994ef27d89ba87643a4..6dfb9ad87a86f2238ae7c4f50ccc56684d7ffdc2 100644
--- a/chrome/browser/content_settings/content_settings_pref_provider.cc
+++ b/chrome/browser/content_settings/content_settings_pref_provider.cc
@@ -561,7 +561,7 @@ void PrefProvider::MigrateObsoleteContentSettingsPatternPref() {
// Copy the legacy content settings for the current |key| from the
// obsolete pref prefs::kContentSettingsPatterns to the pref
// prefs::kContentSettingsPatternPairs.
- DictionaryValue* dictionary = NULL;
+ const DictionaryValue* dictionary = NULL;
bool found = patterns_dictionary->GetDictionaryWithoutPathExpansion(
key, &dictionary);
DCHECK(found);
@@ -599,7 +599,7 @@ void PrefProvider::MigrateObsoleteGeolocationPref() {
GURL primary_url(primary_key);
DCHECK(primary_url.is_valid());
- DictionaryValue* requesting_origin_settings = NULL;
+ const DictionaryValue* requesting_origin_settings = NULL;
// The method GetDictionaryWithoutPathExpansion() returns false if the
// value for the given key is not a |DictionaryValue|. If the value for the
// |primary_key| is not a |DictionaryValue| then the location settings for
@@ -620,7 +620,7 @@ void PrefProvider::MigrateObsoleteGeolocationPref() {
continue;
}
- base::Value* value = NULL;
+ const base::Value* value = NULL;
bool found = requesting_origin_settings->GetWithoutPathExpansion(
secondary_key, &value);
DCHECK(found);

Powered by Google App Engine
This is Rietveld 408576698