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

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

Issue 208017: Lands http://codereview.chromium.org/203029 for Thiago:... (Closed) Base URL: svn://chrome-svn/chrome/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/browser_theme_provider.cc ('k') | chrome/browser/views/toolbar_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/bookmark_menu_button.cc
===================================================================
--- chrome/browser/views/bookmark_menu_button.cc (revision 26509)
+++ chrome/browser/views/bookmark_menu_button.cc (working copy)
@@ -10,8 +10,9 @@
#include <gtk/gtk.h>
#endif
+#include "app/os_exchange_data.h"
#include "app/resource_bundle.h"
-#include "app/os_exchange_data.h"
+#include "app/theme_provider.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
#include "chrome/browser/bookmarks/bookmark_utils.h"
#include "chrome/browser/browser.h"
@@ -29,10 +30,10 @@
set_menu_delegate(this);
SetID(VIEW_ID_BOOKMARK_MENU);
- ResourceBundle &rb = ResourceBundle::GetSharedInstance();
- // TODO (sky): if we keep this code, we need real icons, a11y support, and a
+ ThemeProvider* tp = browser_->profile()->GetThemeProvider();
+ // TODO(sky): if we keep this code, we need real icons, a11y support, and a
// tooltip.
- SetIcon(*rb.GetBitmapNamed(IDR_MENU_BOOKMARK));
+ SetIcon(*tp->GetBitmapNamed(IDR_MENU_BOOKMARK));
}
BookmarkMenuButton::~BookmarkMenuButton() {
« no previous file with comments | « chrome/browser/browser_theme_provider.cc ('k') | chrome/browser/views/toolbar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698