| Index: chrome/browser/extensions/api/messaging/message_service.cc
|
| diff --git a/chrome/browser/extensions/api/messaging/message_service.cc b/chrome/browser/extensions/api/messaging/message_service.cc
|
| index 807cc4d9ddce81772731ad7f9c031f903f65baac..b5ed615b916f9abecdc2f0a67cdf23bf4cdd35ac 100644
|
| --- a/chrome/browser/extensions/api/messaging/message_service.cc
|
| +++ b/chrome/browser/extensions/api/messaging/message_service.cc
|
| @@ -219,8 +219,10 @@ void MessageService::OpenChannelToExtension(
|
| // Include info about the opener's tab (if it was a tab).
|
| std::string tab_json = "null";
|
| if (source_contents) {
|
| - scoped_ptr<DictionaryValue> tab_value(
|
| - ExtensionTabUtil::CreateTabValue(source_contents));
|
| + scoped_ptr<DictionaryValue> tab_value(ExtensionTabUtil::CreateTabValue(
|
| + source_contents,
|
| + profile->GetExtensionService()->extensions()->GetByID(
|
| + source_extension_id)));
|
| base::JSONWriter::Write(tab_value.get(), &tab_json);
|
| }
|
|
|
| @@ -271,8 +273,10 @@ void MessageService::OpenChannelToTab(
|
| // Include info about the opener's tab (if it was a tab).
|
| std::string tab_json = "null";
|
| if (source_contents) {
|
| - scoped_ptr<DictionaryValue> tab_value(
|
| - ExtensionTabUtil::CreateTabValue(source_contents));
|
| + scoped_ptr<DictionaryValue> tab_value(ExtensionTabUtil::CreateTabValue(
|
| + source_contents,
|
| + profile->GetExtensionService()->extensions()->GetByID(
|
| + extension_id)));
|
| base::JSONWriter::Write(tab_value.get(), &tab_json);
|
| }
|
|
|
|
|