| Index: chrome/common/extensions/extension_action.cc
|
| diff --git a/chrome/common/extensions/extension_action.cc b/chrome/common/extensions/extension_action.cc
|
| index b2bef14906d110b257e207c05b482a0562204557..5cb673cbc18334da7efc4e8fc61c26030185f900 100644
|
| --- a/chrome/common/extensions/extension_action.cc
|
| +++ b/chrome/common/extensions/extension_action.cc
|
| @@ -304,7 +304,7 @@ void ExtensionAction::SetIcon(int tab_id, const gfx::Image& image) {
|
|
|
| gfx::Image ExtensionAction::GetIcon(int tab_id) const {
|
| // Check if a specific icon is set for this tab.
|
| - gfx::ImageSkia icon = GetValue(&icon_, tab_id);
|
| + gfx::ImageSkia icon = GetExplicitlySetIcon(tab_id);
|
| if (icon.empty()) {
|
| // Need to find an icon from a path.
|
| const std::string* path = NULL;
|
| @@ -333,6 +333,10 @@ gfx::Image ExtensionAction::GetIcon(int tab_id) const {
|
| return gfx::Image(ApplyIconAnimation(tab_id, icon));
|
| }
|
|
|
| +gfx::ImageSkia ExtensionAction::GetExplicitlySetIcon(int tab_id) const {
|
| + return GetValue(&icon_, tab_id);
|
| +}
|
| +
|
| void ExtensionAction::SetIconIndex(int tab_id, int index) {
|
| if (static_cast<size_t>(index) >= icon_paths_.size()) {
|
| NOTREACHED();
|
|
|