| Index: chrome/browser/content_settings/content_settings_pref_provider.h
|
| diff --git a/chrome/browser/content_settings/content_settings_pref_provider.h b/chrome/browser/content_settings/content_settings_pref_provider.h
|
| index 9c717a2fa785dab2474d2239b6e6a29aa5459e13..ab582489aa4d3b4793d4260ddab59bd323f631df 100644
|
| --- a/chrome/browser/content_settings/content_settings_pref_provider.h
|
| +++ b/chrome/browser/content_settings/content_settings_pref_provider.h
|
| @@ -134,8 +134,6 @@ class PrefProvider : public ObservableProvider,
|
| const NotificationDetails& details);
|
|
|
| private:
|
| - void Init();
|
| -
|
| // Reads all content settings exceptions from the preference and load them
|
| // into the |value_map_|. The |value_map_| is cleared first if |overwrite| is
|
| // true.
|
| @@ -151,8 +149,8 @@ class PrefProvider : public ObservableProvider,
|
| ContentSetting setting);
|
|
|
| // Update the preference prefs::kContentSettingsPatternPairs, which is used to
|
| - // persist content settigns exceptions and supposed to replace the preferences
|
| - // prefs::kContentSettingsPatterns.
|
| + // persist content settings exceptions and supposed to replace the preferences
|
| + // prefs::kContentSettingsPatterns and prefs::kGeolocationContentSettings.
|
| void UpdatePatternPairsPref(
|
| const ContentSettingsPattern& primary_pattern,
|
| const ContentSettingsPattern& secondary_pattern,
|
| @@ -162,7 +160,7 @@ class PrefProvider : public ObservableProvider,
|
|
|
| // Updates the preferences prefs::kContentSettingsPatterns. This preferences
|
| // is obsolete and only used for compatibility reasons.
|
| - void UpdatePatternsPref(
|
| + void UpdateObsoletePatternsPref(
|
| const ContentSettingsPattern& primary_pattern,
|
| const ContentSettingsPattern& secondary_pattern,
|
| ContentSettingsType content_type,
|
| @@ -174,12 +172,20 @@ class PrefProvider : public ObservableProvider,
|
| void MigrateObsoletePerhostPref();
|
| void MigrateObsoletePopupsPref();
|
| void MigrateObsoleteContentSettingsPatternPref();
|
| + void MigrateObsoleteGeolocationPref();
|
|
|
| // Copies the value of the preference that stores the content settings
|
| // exceptions to the obsolete preference for content settings exceptions. This
|
| // is necessary to allow content settings exceptions beeing synced to older
|
| - // versions of chrome that only use the obsolete.
|
| - void SyncObsoletePref();
|
| + // versions of chrome that only use the obsolete preference.
|
| + void SyncObsoletePatternPref();
|
| +
|
| + // Copies the geolocation content settings exceptions from the preference that
|
| + // stores the content settings exceptions to the obsolete preference for
|
| + // geolocation content settings exceptions. This is necessary to allow
|
| + // geolocation content settings exceptions being synced to older versions of
|
| + // chrome that only use the obsolete preference.
|
| + void SyncObsoleteGeolocationPref();
|
|
|
| static void CanonicalizeContentSettingsExceptions(
|
| base::DictionaryValue* all_settings_dictionary);
|
|
|