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

Unified Diff: third_party/WebKit/Source/modules/webshare/NavigatorShare.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/webshare/NavigatorShare.cpp
diff --git a/third_party/WebKit/Source/modules/webshare/NavigatorShare.cpp b/third_party/WebKit/Source/modules/webshare/NavigatorShare.cpp
index e4006ff42d1775230f17f5406892a2e0691e1c51..3d6d9944eb664a49eab8a6f58a4344388d263230 100644
--- a/third_party/WebKit/Source/modules/webshare/NavigatorShare.cpp
+++ b/third_party/WebKit/Source/modules/webshare/NavigatorShare.cpp
@@ -109,7 +109,7 @@ ScriptPromise NavigatorShare::share(ScriptState* script_state,
DOMException* error = DOMException::Create(kSecurityError, error_message);
return ScriptPromise::RejectWithDOMException(script_state, error);
}
- if (!UserGestureIndicator::UtilizeUserGesture()) {
+ if (!UserGestureIndicator::ProcessingUserGesture()) {
DOMException* error = DOMException::Create(
kSecurityError,
"Must be handling a user gesture to perform a share request.");

Powered by Google App Engine
This is Rietveld 408576698