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

Unified Diff: chrome/browser/ui/prefs/prefs_tab_helper.h

Issue 9838050: Remove per-tab preference machinery. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add back images_enabled in WebPreferences 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
Index: chrome/browser/ui/prefs/prefs_tab_helper.h
diff --git a/chrome/browser/ui/prefs/prefs_tab_helper.h b/chrome/browser/ui/prefs/prefs_tab_helper.h
index 47c1f4b5ed9ce1230870f247dc7edee30f1d925c..281fee47dd2f410969f6d1c5715118e15f424d93 100644
--- a/chrome/browser/ui/prefs/prefs_tab_helper.h
+++ b/chrome/browser/ui/prefs/prefs_tab_helper.h
@@ -25,23 +25,13 @@ class PrefsTabHelper : public content::WebContentsObserver,
virtual ~PrefsTabHelper();
static void InitIncognitoUserPrefStore(OverlayUserPrefStore* pref_store);
- static void InitPerTabUserPrefStore(OverlayUserPrefStore* pref_store);
static void RegisterUserPrefs(PrefService* prefs);
- PrefService* per_tab_prefs() { return per_tab_prefs_.get(); }
-
protected:
// Update the RenderView's WebPreferences. Exposed as protected for testing.
virtual void UpdateWebPreferences();
- // content::WebContentsObserver overrides, exposed as protected for testing.
- virtual void RenderViewCreated(
- content::RenderViewHost* render_view_host) OVERRIDE;
-
private:
- // content::WebContentsObserver overrides:
- virtual void WebContentsDestroyed(content::WebContents* tab) OVERRIDE;
-
// content::NotificationObserver overrides:
virtual void Observe(int type,
const content::NotificationSource& source,
@@ -54,9 +44,7 @@ class PrefsTabHelper : public content::WebContentsObserver,
content::NotificationRegistrar registrar_;
- scoped_ptr<PrefService> per_tab_prefs_;
PrefChangeRegistrar pref_change_registrar_;
- PrefChangeRegistrar per_tab_pref_change_registrar_;
DISALLOW_COPY_AND_ASSIGN(PrefsTabHelper);
};
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu.cc ('k') | chrome/browser/ui/prefs/prefs_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698