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

Unified Diff: chrome/browser/ui/webui/ntp/new_tab_page_handler.h

Issue 11570009: Split PrefService into PrefService, PrefServiceSimple and PrefServiceSyncable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ready for review. Created 8 years 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/webui/ntp/new_tab_page_handler.h
diff --git a/chrome/browser/ui/webui/ntp/new_tab_page_handler.h b/chrome/browser/ui/webui/ntp/new_tab_page_handler.h
index 2a580105f5b22f7ac0b3abc787aa9f8fd6cad302..5e25fed35437c3ffad2ef2e72bb0be3510d2f3b3 100644
--- a/chrome/browser/ui/webui/ntp/new_tab_page_handler.h
+++ b/chrome/browser/ui/webui/ntp/new_tab_page_handler.h
@@ -9,7 +9,8 @@
#include "chrome/common/chrome_notification_types.h"
#include "content/public/browser/web_ui_message_handler.h"
-class PrefService;
+class PrefServiceSimple;
+class PrefServiceSyncable;
class Profile;
// Handler for general New Tab Page functionality that does not belong in a
@@ -19,10 +20,10 @@ class NewTabPageHandler : public content::WebUIMessageHandler {
NewTabPageHandler();
// Register NTP per-profile preferences.
- static void RegisterUserPrefs(PrefService* prefs);
+ static void RegisterUserPrefs(PrefServiceSyncable* prefs);
// Register NTP profile-independent preferences.
- static void RegisterPrefs(PrefService* prefs);
+ static void RegisterPrefs(PrefServiceSimple* prefs);
Mattias Nissler (ping if slow) 2012/12/20 13:41:52 dead code?
Jói 2012/12/20 16:30:31 I think so, removed.
// Registers values (strings etc.) for the page.
static void GetLocalizedValues(Profile* profile, DictionaryValue* values);

Powered by Google App Engine
This is Rietveld 408576698