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

Unified Diff: extensions/browser/extension_function_dispatcher.cc

Issue 411733002: WIP: diff which plumbs through the event URL. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | « extensions/browser/event_router_unittest.cc ('k') | extensions/browser/extension_message_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extension_function_dispatcher.cc
diff --git a/extensions/browser/extension_function_dispatcher.cc b/extensions/browser/extension_function_dispatcher.cc
index 523d6ff7e5970c21ba5663ef8456cf499fbaecad..e92b455a87f0f75230a05d8185342850164335e3 100644
--- a/extensions/browser/extension_function_dispatcher.cc
+++ b/extensions/browser/extension_function_dispatcher.cc
@@ -483,7 +483,7 @@ ExtensionFunction* ExtensionFunctionDispatcher::CreateExtensionFunction(
} else if (content::ChildProcessSecurityPolicy::GetInstance()
->HasWebUIBindings(requesting_process_id)) {
// WebUI is calling this API.
- if (!api->IsAvailableToWebUI(params.name)) {
+ if (!api->IsAvailableToWebUI(params.name, params.source_url)) {
disallowed_reason = "WebUI can only call webui-enabled APIs";
}
} else {
« no previous file with comments | « extensions/browser/event_router_unittest.cc ('k') | extensions/browser/extension_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698