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

Unified Diff: extensions/browser/extension_icon_image.h

Issue 2817293002: Fix randomly disappearing icons in app list recent view. (Closed)
Patch Set: fix win compilation Created 3 years, 8 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/app_list/search/extension_app_result.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extension_icon_image.h
diff --git a/extensions/browser/extension_icon_image.h b/extensions/browser/extension_icon_image.h
index 2698de2def28029b930abdf7485e551ed402aecf..2ec6c2602cea30ff84dd2cb5029f985410751cae 100644
--- a/extensions/browser/extension_icon_image.h
+++ b/extensions/browser/extension_icon_image.h
@@ -77,6 +77,9 @@ class IconImage : public content::NotificationObserver {
gfx::Image image() const { return image_; }
const gfx::ImageSkia& image_skia() const { return image_skia_; }
+ // Returns true if the icon is attached to an existing extension.
+ bool is_valid() const { return extension_ ? true : false; }
+
void AddObserver(Observer* observer);
void RemoveObserver(Observer* observer);
« no previous file with comments | « chrome/browser/ui/app_list/search/extension_app_result.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698