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

Unified Diff: chrome/browser/views/toolbar_view.cc

Issue 203029: [Windows] Bookmark-menu button should be themed like any other menu button.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 3 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/views/bookmark_menu_button.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/toolbar_view.cc
===================================================================
--- chrome/browser/views/toolbar_view.cc (revision 26080)
+++ chrome/browser/views/toolbar_view.cc (working copy)
@@ -882,17 +882,17 @@
l10n_util::GetString(IDS_PRODUCT_NAME)));
app_menu_->SetID(VIEW_ID_APP_MENU);
- LoadRightSideControlsImages();
-
- AddChildView(page_menu_);
- AddChildView(app_menu_);
-
if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kBookmarkMenu)) {
bookmark_menu_ = new BookmarkMenuButton(browser_);
AddChildView(bookmark_menu_);
} else {
bookmark_menu_ = NULL;
}
+
+ LoadRightSideControlsImages();
+
+ AddChildView(page_menu_);
+ AddChildView(app_menu_);
}
void ToolbarView::LoadLeftSideControlsImages() {
@@ -984,6 +984,9 @@
app_menu_->SetIcon(*tp->GetBitmapNamed(IDR_MENU_CHROME_RTL));
else
app_menu_->SetIcon(*tp->GetBitmapNamed(IDR_MENU_CHROME));
+
+ if (bookmark_menu_ != NULL)
+ bookmark_menu_->SetIcon(*tp->GetBitmapNamed(IDR_MENU_BOOKMARK));
}
void ToolbarView::RunPageMenu(const gfx::Point& pt, gfx::NativeView parent) {
« no previous file with comments | « chrome/browser/views/bookmark_menu_button.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698