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

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

Issue 10827191: Convert extension action icons code to use ImageSkia instead of SkBitmap (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 8 years, 4 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/browser_actions_container.cc
diff --git a/chrome/browser/ui/views/browser_actions_container.cc b/chrome/browser/ui/views/browser_actions_container.cc
index 9508b0acaf43113be736a657afe31a4c3ae8073f..6b4caa8c5f59aaf530b218ae00ef5bfaf20da2a1 100644
--- a/chrome/browser/ui/views/browser_actions_container.cc
+++ b/chrome/browser/ui/views/browser_actions_container.cc
@@ -403,9 +403,9 @@ void BrowserActionsContainer::WriteDragDataForView(View* sender,
BrowserActionButton* button = browser_action_views_[i]->button();
if (button == sender) {
// Set the dragging image for the icon.
- scoped_ptr<gfx::Canvas> canvas(
- browser_action_views_[i]->GetIconWithBadge());
- drag_utils::SetDragImageOnDataObject(*canvas, button->size(), press_pt,
+ // scoped_ptr<gfx::Canvas> canvas(
pkotwicz 2012/08/07 22:31:22 Nit: remove this
tbarzic 2012/08/08 02:09:29 yeah, I missed that while cleaning up the cl..
+ gfx::ImageSkia badge(browser_action_views_[i]->GetIconWithBadge());
+ drag_utils::SetDragImageOnDataObject(badge, button->size(), press_pt,
data);
// Fill in the remaining info.

Powered by Google App Engine
This is Rietveld 408576698