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

Unified Diff: content/common/frame_messages.h

Issue 518583003: Don't take a fake UGI every time we execute Javascript. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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: content/common/frame_messages.h
diff --git a/content/common/frame_messages.h b/content/common/frame_messages.h
index d9aca27058cc49c017d423b5357fa2cc16eaa94e..c91a5d4da918e42db60754006801a72a83717e40 100644
--- a/content/common/frame_messages.h
+++ b/content/common/frame_messages.h
@@ -414,10 +414,12 @@ IPC_MESSAGE_ROUTED1(FrameMsg_CSSInsertRequest,
// the message FrameHostMsg_JavaScriptExecuteResponse.
// FrameHostMsg_JavaScriptExecuteResponse is passed the ID parameter so that the
// host can uniquely identify the request.
-IPC_MESSAGE_ROUTED3(FrameMsg_JavaScriptExecuteRequest,
+IPC_MESSAGE_ROUTED4(FrameMsg_JavaScriptExecuteRequest,
base::string16, /* javascript */
int, /* ID */
- bool /* if true, a reply is requested */)
+ bool, /* if true, a reply is requested */
+ bool /* ONLY FOR TESTS:
+ if true, a fake UserGestureIndicator is set */)
// Selects between the given start and end offsets in the currently focused
// editable field.

Powered by Google App Engine
This is Rietveld 408576698