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

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

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
« no previous file with comments | « chrome/browser/ui/webui/chrome_web_ui.h ('k') | chrome/browser/ui/webui/ntp/new_tab_ui.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/chrome_web_ui.cc
diff --git a/chrome/browser/ui/webui/chrome_web_ui.cc b/chrome/browser/ui/webui/chrome_web_ui.cc
index 8ca121f36404bb1d92d78230d98c9d0916b15482..2c01d33266f904dad343d8517538f730f8c03a81 100644
--- a/chrome/browser/ui/webui/chrome_web_ui.cc
+++ b/chrome/browser/ui/webui/chrome_web_ui.cc
@@ -21,8 +21,7 @@ bool override_more_webui_ = false;
} // namespace
ChromeWebUI::ChromeWebUI(TabContents* contents)
- : WebUI(contents),
- force_bookmark_bar_visible_(false) {
+ : WebUI(contents) {
}
ChromeWebUI::~ChromeWebUI() {
@@ -32,6 +31,10 @@ Profile* ChromeWebUI::GetProfile() const {
return Profile::FromBrowserContext(tab_contents()->browser_context());
}
+bool ChromeWebUI::CanShowBookmarkBar() const {
+ return false;
+}
+
// static
bool ChromeWebUI::IsMoreWebUI() {
bool more_webui = CommandLine::ForCurrentProcess()->HasSwitch(
« no previous file with comments | « chrome/browser/ui/webui/chrome_web_ui.h ('k') | chrome/browser/ui/webui/ntp/new_tab_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698