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

Unified Diff: chrome/common/extensions/extension_action.cc

Issue 10824359: Remove ImageSkia::empty and ImageSkia::extractSubset (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
« no previous file with comments | « chrome/browser/ui/webui/options/chromeos/wallpaper_source.cc ('k') | ui/app_list/app_list_item_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/extension_action.cc
diff --git a/chrome/common/extensions/extension_action.cc b/chrome/common/extensions/extension_action.cc
index b2bef14906d110b257e207c05b482a0562204557..ef8759dfb6d31949deed0a20ca9f2e2c5bf0db5b 100644
--- a/chrome/common/extensions/extension_action.cc
+++ b/chrome/common/extensions/extension_action.cc
@@ -305,7 +305,7 @@ void ExtensionAction::SetIcon(int tab_id, const gfx::Image& image) {
gfx::Image ExtensionAction::GetIcon(int tab_id) const {
// Check if a specific icon is set for this tab.
gfx::ImageSkia icon = GetValue(&icon_, tab_id);
- if (icon.empty()) {
+ if (icon.isNull()) {
// Need to find an icon from a path.
const std::string* path = NULL;
// Check if one of the elements of icon_path() was selected.
« no previous file with comments | « chrome/browser/ui/webui/options/chromeos/wallpaper_source.cc ('k') | ui/app_list/app_list_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698