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

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

Issue 7065037: Fix crash when creating a desktop shortcut for apps with a missing icon. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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
diff --git a/chrome/browser/ui/webui/extension_icon_source.h b/chrome/browser/ui/webui/extension_icon_source.h
index 745be2752ca65d9907f5c5a6189140fe8455d5ad..2d797c4b3673a971bde3e6efd55ebcedcb80f44f 100644
--- a/chrome/browser/ui/webui/extension_icon_source.h
+++ b/chrome/browser/ui/webui/extension_icon_source.h
@@ -63,6 +63,10 @@ class ExtensionIconSource : public ChromeURLDataManager::DataSource,
ExtensionIconSet::MatchType match,
bool grayscale);
+ // A public utility function for accessing the bitmap of the image specified
+ // by |resource_id|.
+ static SkBitmap* LoadImageByResourceId(int resource_id);
+
// ChromeURLDataManager::DataSource
virtual std::string GetMimeType(const std::string&) const;
« no previous file with comments | « chrome/browser/ui/views/create_application_shortcut_view.cc ('k') | chrome/browser/ui/webui/extension_icon_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698