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

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

Issue 10696130: Get rid of implicit conversion to and from ImageSkiaRep (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/views/toolbar_view.cc
diff --git a/chrome/browser/ui/views/toolbar_view.cc b/chrome/browser/ui/views/toolbar_view.cc
index 9499522fd2e44447283bd8e8c00c4ddc45d0f9f3..5157832fc892e4d529743a712df6cd6e532170fd 100644
--- a/chrome/browser/ui/views/toolbar_view.cc
+++ b/chrome/browser/ui/views/toolbar_view.cc
@@ -349,7 +349,8 @@ gfx::ImageSkia ToolbarView::GetAppMenuIcon(
return icon;
// Draw the chrome app menu icon onto the canvas.
- scoped_ptr<gfx::Canvas> canvas(new gfx::Canvas(icon, false));
+ gfx::ImageSkiaRep image_rep = gfx::ImageSkiaRep(icon, ui::SCALE_FACTOR_100P);
+ scoped_ptr<gfx::Canvas> canvas(new gfx::Canvas(image_rep, false));
gfx::ImageSkia badge;
// Only one badge can be active at any given time. The Upgrade notification
« no previous file with comments | « chrome/browser/ui/views/browser_action_view.cc ('k') | chrome/browser/ui/webui/chromeos/login/network_dropdown.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698