Commit 701acb30 authored by tbarzic@chromium.org's avatar tbarzic@chromium.org

Fix crash in browserAction.setIcon

Crash occurs when icon we set is empty.

BUG=142908
TEST=manual

NOTE: I'll add test for this later.


Review URL: https://chromiumcodereview.appspot.com/10824314

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151776 0039d316-1c4b-4281-b951-d872f2087c98
parent fb140bcf
......@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment