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

Unified Diff: chrome/browser/geolocation/geolocation_content_settings_map.cc

Issue 6905044: Refactor preference syncing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix syncing of platform specific prefs Created 9 years, 8 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/geolocation/geolocation_content_settings_map.cc
diff --git a/chrome/browser/geolocation/geolocation_content_settings_map.cc b/chrome/browser/geolocation/geolocation_content_settings_map.cc
index 5239bf2d3675deec8fba142b920d6784d9644e20..73175f4bd373212568ca969a5fcf048f832e88e0 100644
--- a/chrome/browser/geolocation/geolocation_content_settings_map.cc
+++ b/chrome/browser/geolocation/geolocation_content_settings_map.cc
@@ -50,8 +50,10 @@ GeolocationContentSettingsMap::GeolocationContentSettingsMap(Profile* profile)
// static
void GeolocationContentSettingsMap::RegisterUserPrefs(PrefService* prefs) {
prefs->RegisterIntegerPref(prefs::kGeolocationDefaultContentSetting,
- CONTENT_SETTING_ASK);
- prefs->RegisterDictionaryPref(prefs::kGeolocationContentSettings);
+ CONTENT_SETTING_ASK,
+ true /* sync pref */);
+ prefs->RegisterDictionaryPref(prefs::kGeolocationContentSettings,
+ true /* sync pref */);
}
ContentSetting GeolocationContentSettingsMap::GetDefaultContentSetting() const {

Powered by Google App Engine
This is Rietveld 408576698