Skip to content

Commit

Permalink
Fix bug with 'open_in_sidebar' option
Browse files Browse the repository at this point in the history
It was failing for extensions that were not defining the param
on the manifest.
  • Loading branch information
ltilve committed May 6, 2015
1 parent 3a0650b commit cfadda1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chrome/common/extensions/api/extension_action/action_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ scoped_ptr<ActionInfo> ActionInfo::Load(const Extension* extension,
}

// Should open popup in sidebar?
if (dict->HasKey(keys::kPageActionOpenInSidebar))
dict->GetBoolean(keys::kPageActionOpenInSidebar, &result->open_in_sidebar);
if (!dict->GetBoolean(keys::kPageActionOpenInSidebar, &result->open_in_sidebar))
result->open_in_sidebar = false;

return result.Pass();
}
Expand Down

0 comments on commit cfadda1

Please sign in to comment.