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

Unified Diff: extensions/renderer/request_sender.cc

Issue 2555013004: UserGestureIndicator: remove many unnecessary calls to isMainThread (Closed)
Patch Set: Avoid duplicate thread checks in DOMTimer Created 4 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 | « no previous file | third_party/WebKit/Source/core/frame/DOMTimer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/request_sender.cc
diff --git a/extensions/renderer/request_sender.cc b/extensions/renderer/request_sender.cc
index 896008d656ecf8371e1726c51c989cbca0262052..76ed369f4f1bea0b17abbf8511ffe8626541372d 100644
--- a/extensions/renderer/request_sender.cc
+++ b/extensions/renderer/request_sender.cc
@@ -102,7 +102,7 @@ bool RequestSender::StartRequest(Source* source,
params.request_id = request_id;
params.has_callback = has_callback;
params.user_gesture =
- blink::WebUserGestureIndicator::isProcessingUserGesture();
+ blink::WebUserGestureIndicator::isProcessingUserGestureThreadSafe();
// Set Service Worker specific params to default values.
params.worker_thread_id = -1;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/DOMTimer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698