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

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

Issue 9015012: Get rid of trivial IncognitoUserPrefStore and PerTabUserPrefStore. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved overlay prefs registration code to prefs_tab_helper Created 8 years, 12 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/prefs/per_tab_user_pref_store.cc
diff --git a/chrome/browser/prefs/per_tab_user_pref_store.cc b/chrome/browser/prefs/per_tab_user_pref_store.cc
deleted file mode 100644
index 41f0c8fc0b10129c9b4ee2a178d3c0968ddd5b51..0000000000000000000000000000000000000000
--- a/chrome/browser/prefs/per_tab_user_pref_store.cc
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/prefs/per_tab_user_pref_store.h"
-#include "chrome/common/pref_names.h"
-
-PerTabUserPrefStore::PerTabUserPrefStore(PersistentPrefStore* underlay)
- : OverlayUserPrefStore(underlay) {
- RegisterOverlayProperty(
- prefs::kWebKitJavascriptEnabled,
- prefs::kWebKitGlobalJavascriptEnabled);
- RegisterOverlayProperty(
- prefs::kWebKitJavascriptCanOpenWindowsAutomatically,
- prefs::kWebKitGlobalJavascriptCanOpenWindowsAutomatically);
- RegisterOverlayProperty(
- prefs::kWebKitLoadsImagesAutomatically,
- prefs::kWebKitGlobalLoadsImagesAutomatically);
- RegisterOverlayProperty(
- prefs::kWebKitPluginsEnabled,
- prefs::kWebKitGlobalPluginsEnabled);
- RegisterOverlayProperty(
- prefs::kDefaultCharset,
- prefs::kGlobalDefaultCharset);
- RegisterOverlayProperty(
- prefs::kWebKitStandardFontFamily,
- prefs::kWebKitGlobalStandardFontFamily);
- RegisterOverlayProperty(
- prefs::kWebKitFixedFontFamily,
- prefs::kWebKitGlobalFixedFontFamily);
- RegisterOverlayProperty(
- prefs::kWebKitSerifFontFamily,
- prefs::kWebKitGlobalSerifFontFamily);
- RegisterOverlayProperty(
- prefs::kWebKitSansSerifFontFamily,
- prefs::kWebKitGlobalSansSerifFontFamily);
- RegisterOverlayProperty(
- prefs::kWebKitCursiveFontFamily,
- prefs::kWebKitGlobalCursiveFontFamily);
- RegisterOverlayProperty(
- prefs::kWebKitFantasyFontFamily,
- prefs::kWebKitGlobalFantasyFontFamily);
- RegisterOverlayProperty(
- prefs::kWebKitDefaultFontSize,
- prefs::kWebKitGlobalDefaultFontSize);
- RegisterOverlayProperty(
- prefs::kWebKitDefaultFixedFontSize,
- prefs::kWebKitGlobalDefaultFixedFontSize);
- RegisterOverlayProperty(
- prefs::kWebKitMinimumFontSize,
- prefs::kWebKitGlobalMinimumFontSize);
- RegisterOverlayProperty(
- prefs::kWebKitMinimumLogicalFontSize,
- prefs::kWebKitGlobalMinimumLogicalFontSize);
-}

Powered by Google App Engine
This is Rietveld 408576698