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

Unified Diff: extensions/browser/extension_web_contents_observer.cc

Issue 890083002: [Extensions] Propagate activeTab hosts to extension background pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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: extensions/browser/extension_web_contents_observer.cc
diff --git a/extensions/browser/extension_web_contents_observer.cc b/extensions/browser/extension_web_contents_observer.cc
index 0a816aec5d466fdc677ad57c89bf30ca223e5bf6..5903e3c0ba9825b32b8584d890c7dd62b11ee073 100644
--- a/extensions/browser/extension_web_contents_observer.cc
+++ b/extensions/browser/extension_web_contents_observer.cc
@@ -75,9 +75,11 @@ void ExtensionWebContentsObserver::RenderViewCreated(
// ExtensionDispatcher knows what Extension is active, not just its ID.
// This is important for classifying the Extension's JavaScript context
// correctly (see ExtensionDispatcher::ClassifyJavaScriptContext).
+ // We also have to include the tab-specific permissions here, since it's
+ // an extension process.
render_view_host->Send(
new ExtensionMsg_Loaded(std::vector<ExtensionMsg_Loaded_Params>(
- 1, ExtensionMsg_Loaded_Params(extension))));
+ 1, ExtensionMsg_Loaded_Params(extension, true))));
not at google - send to devlin 2015/02/05 00:16:13 same deal, document the "true"
Devlin 2015/02/05 19:54:50 Done.
render_view_host->Send(
new ExtensionMsg_ActivateExtension(extension->id()));
break;

Powered by Google App Engine
This is Rietveld 408576698