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

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: . 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 ce4c423a7d54efe70f87faf82b48912e33a4e925..4eff5e53b140b8aa4d49670cf9b9f9e7b45f0f2a 100644
--- a/chrome/browser/ui/views/browser_actions_container.cc
+++ b/chrome/browser/ui/views/browser_actions_container.cc
@@ -381,9 +381,8 @@ 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,
+ 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