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

Unified Diff: chrome/browser/ui/webui/extension_icon_source.h

Issue 7790002: Fixed extension icon source handling of component extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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/webui/extension_icon_source.h
===================================================================
--- chrome/browser/ui/webui/extension_icon_source.h (revision 98624)
+++ chrome/browser/ui/webui/extension_icon_source.h (working copy)
@@ -97,6 +97,12 @@
// Loads the default image for |request_id| and returns to the client.
void LoadDefaultImage(int request_id);
+ // Tries loading component extension image. These usually come from resources
+ // instead of file system. Returns false if a given |icon| does not have
+ // a corresponding image in bundled resources.
+ bool TryLoadingComponentExtensionImage(const ExtensionResource& icon,
+ int request_id);
+
// Loads the extension's |icon| for the given |request_id| and returns the
// image to the client.
void LoadExtensionImage(const ExtensionResource& icon, int request_id);
« no previous file with comments | « no previous file | chrome/browser/ui/webui/extension_icon_source.cc » ('j') | chrome/browser/ui/webui/extension_icon_source.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698