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

Unified Diff: extensions/renderer/user_gestures_native_handler.cc

Issue 1843803002: [Extensions] Add an access check before executing native code in the renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 4 years, 9 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/renderer/script_context.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/user_gestures_native_handler.cc
diff --git a/extensions/renderer/user_gestures_native_handler.cc b/extensions/renderer/user_gestures_native_handler.cc
index 852762c0e2c3db1197b2304dfdcbe954f819b952..c01a4ae7240532a1ca11e8174f9448834b07a1e9 100644
--- a/extensions/renderer/user_gestures_native_handler.cc
+++ b/extensions/renderer/user_gestures_native_handler.cc
@@ -14,12 +14,15 @@ namespace extensions {
UserGesturesNativeHandler::UserGesturesNativeHandler(ScriptContext* context)
: ObjectBackedNativeHandler(context) {
RouteFunction("IsProcessingUserGesture",
+ "test",
base::Bind(&UserGesturesNativeHandler::IsProcessingUserGesture,
base::Unretained(this)));
RouteFunction("RunWithUserGesture",
+ "test",
base::Bind(&UserGesturesNativeHandler::RunWithUserGesture,
base::Unretained(this)));
RouteFunction("RunWithoutUserGesture",
+ "test",
base::Bind(&UserGesturesNativeHandler::RunWithoutUserGesture,
base::Unretained(this)));
}
« no previous file with comments | « extensions/renderer/script_context.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698