diff options
Diffstat (limited to 'chrome/browser/extensions/extension_browser_event_router.cc')
-rw-r--r-- | chrome/browser/extensions/extension_browser_event_router.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_browser_event_router.cc b/chrome/browser/extensions/extension_browser_event_router.cc index b6bfebc..ad0d701 100644 --- a/chrome/browser/extensions/extension_browser_event_router.cc +++ b/chrome/browser/extensions/extension_browser_event_router.cc @@ -311,9 +311,16 @@ void ExtensionBrowserEventRouter::TabUpdated(TabContents* contents, // The state of the tab (as seen from the extension point of view) has // changed. Send a notification to the extension. ListValue args; + + // First arg: The id of the tab that changed. args.Append(Value::CreateIntegerValue(tab_id)); + + // Second arg: An object containing the changes to the tab state. args.Append(changed_properties); + // Third arg: An object containing the state of the tab. + args.Append(ExtensionTabUtil::CreateTabValue(contents)); + std::string json_args; base::JSONWriter::Write(&args, false, &json_args); |