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

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

Issue 8135001: Fixed behavior of the bookmark bar visibility. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reviewed, rebased Created 9 years, 2 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/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 6c204f972bd87a68f87300c2de48ccfe7732a641..a8156119599e53d344afd8635f28ce33c9bcfdda 100644
--- a/chrome/browser/ui/webui/ntp/new_tab_ui.h
+++ b/chrome/browser/ui/webui/ntp/new_tab_ui.h
@@ -9,6 +9,7 @@
#include <string>
#include "base/gtest_prod_util.h"
+#include "base/time.h"
#include "base/timer.h"
#include "chrome/browser/sessions/tab_restore_service.h"
#include "chrome/browser/ui/webui/chrome_url_data_manager.h"
@@ -17,7 +18,6 @@
#include "content/common/notification_registrar.h"
class GURL;
-class MessageLoop;
class PrefService;
class Profile;
@@ -92,6 +92,11 @@ class NewTabUI : public ChromeWebUI,
// Returns true if the version was updated.
static bool UpdateUserPrefsVersion(PrefService* prefs);
+ // Overridden from ChromeWebUI. Determines if the bookmarks bar should be
+ // displayed inline in the webui, taking into account the version of the NTP
+ // and the related preferences.
+ virtual bool IsBookmarkBarVisible() const OVERRIDE;
+
NotificationRegistrar registrar_;
// The time when we started benchmarking.

Powered by Google App Engine
This is Rietveld 408576698