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

Unified Diff: chrome/renderer/extensions/extension_dispatcher.cc

Issue 8872053: Add world_id parameter to ExtensionDispatcher::AllowScriptExecution(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compile Created 9 years 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 | « chrome/renderer/extensions/extension_dispatcher.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/extensions/extension_dispatcher.cc
diff --git a/chrome/renderer/extensions/extension_dispatcher.cc b/chrome/renderer/extensions/extension_dispatcher.cc
index c33b488651ff848081055fe0f7abf9ac8d23d2cc..20bbb003c3d34574a254d8e92bf1fbe82fe6eeb5 100644
--- a/chrome/renderer/extensions/extension_dispatcher.cc
+++ b/chrome/renderer/extensions/extension_dispatcher.cc
@@ -260,6 +260,14 @@ bool ExtensionDispatcher::AllowScriptExtension(
WebFrame* frame,
const std::string& v8_extension_name,
int extension_group) {
+ return AllowScriptExtension(frame, v8_extension_name, extension_group, 0);
+}
+
+bool ExtensionDispatcher::AllowScriptExtension(
+ WebFrame* frame,
+ const std::string& v8_extension_name,
+ int extension_group,
+ int world_id) {
// NULL in unit tests.
if (!RenderThread::Get())
return true;
« no previous file with comments | « chrome/renderer/extensions/extension_dispatcher.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698