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

Unified Diff: ash/launcher/launcher_button.cc

Issue 10382144: Change SetImage, SetBackground, and SetToggledImage to take in a gfx::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
« no previous file with comments | « no previous file | ash/launcher/launcher_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/launcher/launcher_button.cc
diff --git a/ash/launcher/launcher_button.cc b/ash/launcher/launcher_button.cc
index c6758eb00f0d090b8f0e298e8821cb74527cabcd..a5a739e803a32f41080ea3b747c495058df53e29 100644
--- a/ash/launcher/launcher_button.cc
+++ b/ash/launcher/launcher_button.cc
@@ -150,7 +150,7 @@ void LauncherButton::SetShadowedImage(const SkBitmap& bitmap) {
void LauncherButton::SetImage(const SkBitmap& image) {
if (image.empty()) {
// TODO: need an empty image.
- icon_view_->SetImage(&image);
+ icon_view_->SetImage(image);
return;
}
@@ -309,7 +309,7 @@ void LauncherButton::UpdateState() {
else
bar_id = IDR_AURA_LAUNCHER_UNDERLINE_RUNNING;
- bar_->SetImage(rb.GetImageNamed(bar_id).ToSkBitmap());
+ bar_->SetImage(rb.GetImageNamed(bar_id).ToImageSkia());
}
Layout();
« no previous file with comments | « no previous file | ash/launcher/launcher_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698