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

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

Issue 11348165: Remove PrefObserver usages, batch 10. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android Created 8 years, 1 month 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_ui.h
diff --git a/chrome/browser/ui/webui/ntp/new_tab_ui.h b/chrome/browser/ui/webui/ntp/new_tab_ui.h
index 59fd481cbc4af6b4a124b481d83222e010b1b33c..d13091df4c44944c1d72cf4355ce7e978164aa96 100644
--- a/chrome/browser/ui/webui/ntp/new_tab_ui.h
+++ b/chrome/browser/ui/webui/ntp/new_tab_ui.h
@@ -10,7 +10,6 @@
#include "base/gtest_prod_util.h"
#include "base/prefs/public/pref_change_registrar.h"
-#include "base/prefs/public/pref_observer.h"
#include "base/time.h"
#include "base/timer.h"
#include "chrome/browser/sessions/tab_restore_service.h"
@@ -25,8 +24,7 @@ class Profile;
// The WebContents used for the New Tab page.
class NewTabUI : public content::WebUIController,
- public content::NotificationObserver,
- public PrefObserver {
+ public content::NotificationObserver {
public:
explicit NewTabUI(content::WebUI* web_ui);
virtual ~NewTabUI();
@@ -106,9 +104,7 @@ class NewTabUI : public content::WebUIController,
const content::NotificationSource& source,
const content::NotificationDetails& details) OVERRIDE;
- // PrefObserver implementation.
- virtual void OnPreferenceChanged(PrefServiceBase* service,
- const std::string& pref_name) OVERRIDE;
+ void OnShowBookmarkBarChanged();
// Reset the CSS caches.
void InitializeCSSCaches();

Powered by Google App Engine
This is Rietveld 408576698