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

Unified Diff: chrome/browser/ui/webui/chrome_web_ui.h

Issue 8135001: Fixed behavior of the bookmark bar visibility. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: DCHECK_EQ instead of DCHECK 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/chrome_web_ui.h
diff --git a/chrome/browser/ui/webui/chrome_web_ui.h b/chrome/browser/ui/webui/chrome_web_ui.h
index 765fe0300f72614010e90eaeab0368657964fcd2..1e5ebc5f146f7e0fa44bbf8536f96f48d623de4a 100644
--- a/chrome/browser/ui/webui/chrome_web_ui.h
+++ b/chrome/browser/ui/webui/chrome_web_ui.h
@@ -18,11 +18,9 @@ class ChromeWebUI : public WebUI {
// Returns the profile for this WebUI.
Profile* GetProfile() const;
- // Returns true if the bookmark bar should be forced to being visible,
- // overriding the user's preference.
- bool force_bookmark_bar_visible() const {
- return force_bookmark_bar_visible_;
- }
+ // Returns true if the bookmark bar can be displayed over this webui,
+ // detached from the location bar.
+ virtual bool CanShowBookmarkBar() const;
// IsMoreWebUI returns a command line flag that tracks whether to use
// available WebUI implementations of native dialogs.
@@ -32,14 +30,7 @@ class ChromeWebUI : public WebUI {
// WebUI.
static void OverrideMoreWebUI(bool use_more_webui);
- protected:
- void set_force_bookmark_bar_visible(bool value) {
- force_bookmark_bar_visible_ = value;
- }
-
private:
- bool force_bookmark_bar_visible_;
-
DISALLOW_COPY_AND_ASSIGN(ChromeWebUI);
};
« no previous file with comments | « chrome/browser/ui/views/bookmarks/bookmark_context_menu_controller_views.cc ('k') | chrome/browser/ui/webui/chrome_web_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698