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

Unified Diff: third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp

Issue 2850983002: Remove UserGestureUtilizedCallback, it's unused outside of tests (Closed)
Patch Set: Created 3 years, 8 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: third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp
diff --git a/third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp b/third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp
index 58eb8dfe0ca7be686a3ad9b6a8fb7488275018f0..c861cde69a90c0e9fbe5398428baa56510efe94f 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp
+++ b/third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp
@@ -135,7 +135,8 @@ ScriptPromise PresentationRequest::start(ScriptState* script_state) {
!context_settings ||
context_settings->GetPresentationRequiresUserGesture();
- if (is_user_gesture_required && !UserGestureIndicator::UtilizeUserGesture())
+ if (is_user_gesture_required &&
+ !UserGestureIndicator::ProcessingUserGesture())
return ScriptPromise::RejectWithDOMException(
script_state,
DOMException::Create(

Powered by Google App Engine
This is Rietveld 408576698