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

Unified Diff: chrome/browser/ui/toolbar/wrench_menu_model.cc

Issue 10453101: Convert most of the rest of chrome to ImageSkia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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/toolbar/wrench_menu_model.cc
diff --git a/chrome/browser/ui/toolbar/wrench_menu_model.cc b/chrome/browser/ui/toolbar/wrench_menu_model.cc
index 68622989f134e530ad60d54173dfb66f84a1e70b..a49787b89dd2dd9c01eaf895dca33fa54dee84ad 100644
--- a/chrome/browser/ui/toolbar/wrench_menu_model.cc
+++ b/chrome/browser/ui/toolbar/wrench_menu_model.cc
@@ -46,12 +46,12 @@
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
#include "grit/theme_resources.h"
-#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/layout.h"
#include "ui/base/models/button_menu_item_model.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/image/image.h"
+#include "ui/gfx/image/image_skia.h"
#if defined(TOOLKIT_GTK)
#include <gtk/gtk.h>
@@ -494,7 +494,7 @@ void WrenchMenuModel::Build() {
#if defined(OS_WIN)
SetIcon(GetIndexOfCommandId(IDC_VIEW_INCOMPATIBILITIES),
*ui::ResourceBundle::GetSharedInstance().
- GetBitmapNamed(IDR_CONFLICT_MENU));
+ GetImageSkiaNamed(IDR_CONFLICT_MENU));
#endif
if (!is_touch_menu) {
@@ -503,7 +503,7 @@ void WrenchMenuModel::Build() {
if (browser_defaults::kShowHelpMenuItemIcon) {
ui::ResourceBundle& rb = ResourceBundle::GetSharedInstance();
SetIcon(GetIndexOfCommandId(IDC_HELP_PAGE),
- *rb.GetBitmapNamed(IDR_HELP_MENU));
+ *rb.GetImageSkiaNamed(IDR_HELP_MENU));
}
}
@@ -535,7 +535,7 @@ void WrenchMenuModel::AddGlobalErrorMenuItems() {
if (icon_id) {
gfx::Image& image = rb.GetImageNamed(icon_id);
SetIcon(GetIndexOfCommandId(error->MenuItemCommandID()),
- *image.ToSkBitmap());
+ *image.ToImageSkia());
}
}
}
« no previous file with comments | « chrome/browser/ui/search_engines/template_url_table_model.cc ('k') | chrome/browser/ui/views/about_chrome_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698