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

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

Issue 10824314: Fix crash in browserAction.setIcon (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 | « no previous file | no next file » | 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 340ee5a147a06ecd46375e75eeaf7949a7bd59ca..b2bef14906d110b257e207c05b482a0562204557 100644
--- a/chrome/common/extensions/extension_action.cc
+++ b/chrome/common/extensions/extension_action.cc
@@ -299,7 +299,7 @@ void ExtensionAction::CacheIcon(const std::string& path,
}
void ExtensionAction::SetIcon(int tab_id, const gfx::Image& image) {
- SetValue(&icon_, tab_id, *image.ToImageSkia());
+ SetValue(&icon_, tab_id, image.AsImageSkia());
}
gfx::Image ExtensionAction::GetIcon(int tab_id) const {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698