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

Unified Diff: chrome/browser/ui/tabs/tab_strip_layout_type_prefs.cc

Issue 11741003: Remove PrefServiceSimple, replacing it with PrefService and PrefRegistrySimple. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix double registration in Chrome Frame test. Created 7 years, 10 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/ui/tabs/tab_strip_layout_type_prefs.h ('k') | chrome/browser/ui/webui/flags_ui.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/tabs/tab_strip_layout_type_prefs.cc
diff --git a/chrome/browser/ui/tabs/tab_strip_layout_type_prefs.cc b/chrome/browser/ui/tabs/tab_strip_layout_type_prefs.cc
index ef380d560bfcc569ed671a91d3ccace55f5126c9..da69e8de3ccd7f5069adec28e914da3e31acdb57 100644
--- a/chrome/browser/ui/tabs/tab_strip_layout_type_prefs.cc
+++ b/chrome/browser/ui/tabs/tab_strip_layout_type_prefs.cc
@@ -4,17 +4,16 @@
#include "chrome/browser/ui/tabs/tab_strip_layout_type_prefs.h"
-#include "chrome/browser/prefs/pref_service.h"
+#include "chrome/browser/prefs/pref_registry_simple.h"
#include "chrome/browser/ui/tabs/tab_strip_layout_type.h"
#include "chrome/common/pref_names.h"
namespace chrome {
-void RegisterTabStripLayoutTypePrefs(PrefServiceSimple* local_state) {
+void RegisterTabStripLayoutTypePrefs(PrefRegistrySimple* registry) {
// This value is device dependant, so it goes in local state.
- local_state->RegisterIntegerPref(
- prefs::kTabStripLayoutType,
- static_cast<int>(TAB_STRIP_LAYOUT_SHRINK));
+ registry->RegisterIntegerPref(prefs::kTabStripLayoutType,
+ static_cast<int>(TAB_STRIP_LAYOUT_SHRINK));
}
} // namespace chrome
« no previous file with comments | « chrome/browser/ui/tabs/tab_strip_layout_type_prefs.h ('k') | chrome/browser/ui/webui/flags_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698