summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/prefs
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/prefs')
-rw-r--r--chrome/browser/ui/prefs/prefs_tab_helper.cc13
-rw-r--r--chrome/browser/ui/prefs/prefs_tab_helper.h1
2 files changed, 0 insertions, 14 deletions
diff --git a/chrome/browser/ui/prefs/prefs_tab_helper.cc b/chrome/browser/ui/prefs/prefs_tab_helper.cc
index 1cf523f..5cb2d6e 100644
--- a/chrome/browser/ui/prefs/prefs_tab_helper.cc
+++ b/chrome/browser/ui/prefs/prefs_tab_helper.cc
@@ -491,19 +491,6 @@ PrefsTabHelper::~PrefsTabHelper() {
}
// static
-void PrefsTabHelper::InitIncognitoUserPrefStore(
- OverlayUserPrefStore* pref_store) {
- // List of keys that cannot be changed in the user prefs file by the incognito
- // profile. All preferences that store information about the browsing history
- // or behavior of the user should have this property.
- pref_store->RegisterOverlayPref(prefs::kBrowserWindowPlacement);
- pref_store->RegisterOverlayPref(prefs::kSaveFileDefaultDirectory);
-#if defined(OS_ANDROID) || defined(OS_IOS)
- pref_store->RegisterOverlayPref(proxy_config::prefs::kProxy);
-#endif // defined(OS_ANDROID) || defined(OS_IOS)
-}
-
-// static
void PrefsTabHelper::RegisterProfilePrefs(
user_prefs::PrefRegistrySyncable* registry) {
WebPreferences pref_defaults;
diff --git a/chrome/browser/ui/prefs/prefs_tab_helper.h b/chrome/browser/ui/prefs/prefs_tab_helper.h
index 8ce832a..07e64cd 100644
--- a/chrome/browser/ui/prefs/prefs_tab_helper.h
+++ b/chrome/browser/ui/prefs/prefs_tab_helper.h
@@ -31,7 +31,6 @@ class PrefsTabHelper : public content::NotificationObserver,
public:
~PrefsTabHelper() override;
- static void InitIncognitoUserPrefStore(OverlayUserPrefStore* pref_store);
static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
static void GetServiceInstance();