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

Unified Diff: chrome/browser/extensions/extension_action_icon_factory.cc

Issue 882243002: [Extensions] Make extension actions use gfx::Image over gfx::ImageSkia. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master Created 5 years, 11 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/extensions/extension_action_icon_factory.cc
diff --git a/chrome/browser/extensions/extension_action_icon_factory.cc b/chrome/browser/extensions/extension_action_icon_factory.cc
index 6c5461f2262fd778324a874ca36bf3bf9b48c7e2..a7e8df3043b89b0c226df33c89ce1830a5b539f4 100644
--- a/chrome/browser/extensions/extension_action_icon_factory.cc
+++ b/chrome/browser/extensions/extension_action_icon_factory.cc
@@ -41,16 +41,12 @@ void ExtensionActionIconFactory::OnExtensionIconImageDestroyed(
}
gfx::Image ExtensionActionIconFactory::GetIcon(int tab_id) {
- return gfx::Image(GetBaseIconFromAction(tab_id));
-}
-
-gfx::ImageSkia ExtensionActionIconFactory::GetBaseIconFromAction(int tab_id) {
- gfx::ImageSkia icon = action_->GetExplicitlySetIcon(tab_id);
- if (!icon.isNull())
+ gfx::Image icon = action_->GetExplicitlySetIcon(tab_id);
+ if (!icon.IsEmpty())
return icon;
icon = action_->GetDeclarativeIcon(tab_id);
- if (!icon.isNull())
+ if (!icon.IsEmpty())
return icon;
return action_->GetDefaultIconImage();

Powered by Google App Engine
This is Rietveld 408576698