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

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

Issue 10437006: Converts ui/views/controls, ui/views/examples, ui/base/models to ImageSkia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 7 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 6dd6b565fcb0c4bb01b59af4544240258f0fdc1e..11ac89db6815d649b0ad66a10dfcdbc9ecda8aab 100644
--- a/chrome/browser/ui/toolbar/wrench_menu_model.cc
+++ b/chrome/browser/ui/toolbar/wrench_menu_model.cc
@@ -281,14 +281,14 @@ string16 WrenchMenuModel::GetLabelForCommandId(int command_id) const {
}
bool WrenchMenuModel::GetIconForCommandId(int command_id,
- SkBitmap* icon) const {
+ gfx::ImageSkia* icon) const {
ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
switch (command_id) {
case IDC_UPGRADE_DIALOG: {
if (UpgradeDetector::GetInstance()->notify_upgrade()) {
- *icon = *rb.GetNativeImageNamed(
+ *icon = *rb.GetImageNamed(
UpgradeDetector::GetInstance()->GetIconResourceID(
- UpgradeDetector::UPGRADE_ICON_TYPE_MENU_ICON)).ToSkBitmap();
+ UpgradeDetector::UPGRADE_ICON_TYPE_MENU_ICON)).ToImageSkia();
return true;
}
return false;
@@ -301,7 +301,7 @@ bool WrenchMenuModel::GetIconForCommandId(int command_id,
if (error && error->HasCustomizedSyncMenuItem()) {
int icon_id = error->MenuItemIconResourceID();
if (icon_id) {
- *icon = *rb.GetNativeImageNamed(icon_id).ToSkBitmap();
+ *icon = *rb.GetImageNamed(icon_id).ToImageSkia();
return true;
}
}

Powered by Google App Engine
This is Rietveld 408576698