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

Unified Diff: chrome/browser/ui/views/location_bar/page_action_image_view.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/location_bar/page_action_image_view.cc
diff --git a/chrome/browser/ui/views/location_bar/page_action_image_view.cc b/chrome/browser/ui/views/location_bar/page_action_image_view.cc
index 583e2d20a77a46cddbee231bc4dabea7c679821b..25bfa2e244e4f7b99c9ae80579ab13236f63a8ef 100644
--- a/chrome/browser/ui/views/location_bar/page_action_image_view.cc
+++ b/chrome/browser/ui/views/location_bar/page_action_image_view.cc
@@ -271,9 +271,8 @@ void PageActionImageView::UpdateVisibility(WebContents* contents,
// Set the image.
gfx::Image icon = page_action_->GetIcon(current_tab_id_);
- if (!icon.IsEmpty()) {
+ if (!icon.IsEmpty())
SetImage(*icon.ToImageSkia());
- }
SetVisible(true);
}

Powered by Google App Engine
This is Rietveld 408576698