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

Unified Diff: extensions/renderer/dispatcher.cc

Issue 315143003: Call InitOriginPermissions when extension is added to the renderer process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/dispatcher.cc
diff --git a/extensions/renderer/dispatcher.cc b/extensions/renderer/dispatcher.cc
index dde54db68bfb703019b8a96f0c91fe817429d0ff..6f790f2767faa621bca112336a82cbea4aed96dc 100644
--- a/extensions/renderer/dispatcher.cc
+++ b/extensions/renderer/dispatcher.cc
@@ -552,6 +552,9 @@ void Dispatcher::OnActivateExtension(const std::string& extension_id) {
if (is_webkit_initialized_) {
extensions::DOMActivityLogger::AttachToWorld(
extensions::DOMActivityLogger::kMainWorldId, extension_id);
+
+ if (extension)
+ InitOriginPermissions(extension, Feature::UNSPECIFIED_CONTEXT);
not at google - send to devlin 2014/06/05 16:48:23 this is an odd change to make without - taking out
}
UpdateActiveExtensions();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698