Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(337)

Unified Diff: chrome/common/extensions/extension_messages.cc

Issue 10443105: Take 2 at implementing activeTab. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: many more tests Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/extension_messages.cc
diff --git a/chrome/common/extensions/extension_messages.cc b/chrome/common/extensions/extension_messages.cc
index db167d1c431d6d83ca3ef7a40b58d9efe9581e0d..837088ca24ef4e83469f6cd73b5bb2e1d725615d 100644
--- a/chrome/common/extensions/extension_messages.cc
+++ b/chrome/common/extensions/extension_messages.cc
@@ -27,6 +27,7 @@ ExtensionMsg_Loaded_Params::ExtensionMsg_Loaded_Params(
scriptable_hosts(extension->GetActivePermissions()->scriptable_hosts()),
id(extension->id()),
creation_flags(extension->creation_flags()) {
+ extension->GetAllTabSpecificHostPermissions(&tab_specific_host_permissions);
}
scoped_refptr<Extension>
@@ -43,6 +44,8 @@ scoped_refptr<Extension>
extension->SetActivePermissions(
new ExtensionPermissionSet(apis, explicit_hosts, scriptable_hosts));
+ extension->SetAllTabSpecificHostPermissions(tab_specific_host_permissions);
+
return extension;
}

Powered by Google App Engine
This is Rietveld 408576698