| Index: chrome/browser/extensions/extension_sidebar_api.cc
|
| ===================================================================
|
| --- chrome/browser/extensions/extension_sidebar_api.cc (revision 57122)
|
| +++ chrome/browser/extensions/extension_sidebar_api.cc (working copy)
|
| @@ -76,8 +76,9 @@
|
|
|
| // static
|
| void ExtensionSidebarEventRouter::OnStateChanged(
|
| - Profile* profile, int tab_id, const std::string& content_id,
|
| + Profile* profile, TabContents* tab, const std::string& content_id,
|
| const std::string& state) {
|
| + int tab_id = ExtensionTabUtil::GetTabId(tab);
|
| DictionaryValue* details = new DictionaryValue;
|
| details->Set(kTabIdKey, Value::CreateIntegerValue(tab_id));
|
| details->Set(kStateKey, Value::CreateStringValue(state));
|
|
|