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

Unified Diff: chrome/browser/prefs/pref_service.cc

Issue 9838050: Remove per-tab preference machinery. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: should be kWebKitGlobalJavascriptEnabled Created 8 years, 9 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
« no previous file with comments | « chrome/browser/prefs/pref_service.h ('k') | chrome/browser/tab_contents/render_view_context_menu.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prefs/pref_service.cc
diff --git a/chrome/browser/prefs/pref_service.cc b/chrome/browser/prefs/pref_service.cc
index 510ac1c386585a4226701d18288f843c3d328f8d..06e1d57740e4717272f3caaf792b53be167ccb10 100644
--- a/chrome/browser/prefs/pref_service.cc
+++ b/chrome/browser/prefs/pref_service.cc
@@ -204,32 +204,6 @@ PrefService* PrefService::CreateIncognitoPrefService(
false);
}
-PrefService* PrefService::CreatePrefServiceWithPerTabPrefStore() {
- pref_service_forked_ = true;
- PrefNotifierImpl* pref_notifier = new PrefNotifierImpl();
- OverlayUserPrefStore* per_tab_pref_store =
- new OverlayUserPrefStore(user_pref_store_.get());
- PrefsTabHelper::InitPerTabUserPrefStore(per_tab_pref_store);
- DefaultPrefStore* default_store = new DefaultPrefStore();
- return new PrefService(
- pref_notifier,
- pref_value_store_->CloneAndSpecialize(
- NULL, // managed_platform_prefs
- NULL, // managed_cloud_prefs
- NULL, // extension_prefs
- NULL, // command_line_prefs
- per_tab_pref_store,
- NULL, // recommended_platform_prefs
- NULL, // recommended_cloud_prefs
- default_store,
- NULL,
- pref_notifier),
- per_tab_pref_store,
- default_store,
- NULL,
- false);
-}
-
PrefService::PrefService(PrefNotifierImpl* pref_notifier,
PrefValueStore* pref_value_store,
PersistentPrefStore* user_prefs,
« no previous file with comments | « chrome/browser/prefs/pref_service.h ('k') | chrome/browser/tab_contents/render_view_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698