| Index: third_party/WebKit/Source/web/WebUserGestureIndicator.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebUserGestureIndicator.cpp b/third_party/WebKit/Source/web/WebUserGestureIndicator.cpp
|
| index de7ec821e38bec30936e22745e6a1561ecd40d88..e1eaf1b52459469ceb9fb1ce05652574b7455c7d 100644
|
| --- a/third_party/WebKit/Source/web/WebUserGestureIndicator.cpp
|
| +++ b/third_party/WebKit/Source/web/WebUserGestureIndicator.cpp
|
| @@ -32,6 +32,7 @@
|
|
|
| #include "platform/UserGestureIndicator.h"
|
| #include "public/web/WebUserGestureToken.h"
|
| +#include "web/WebLocalFrameImpl.h"
|
|
|
| namespace blink {
|
|
|
| @@ -43,8 +44,10 @@ bool WebUserGestureIndicator::consumeUserGesture() {
|
| return UserGestureIndicator::consumeUserGesture();
|
| }
|
|
|
| -bool WebUserGestureIndicator::processedUserGestureSinceLoad() {
|
| - return UserGestureIndicator::processedUserGestureSinceLoad();
|
| +bool WebUserGestureIndicator::processedUserGestureSinceLoad(
|
| + WebLocalFrame* frame) {
|
| + Document* document = toWebLocalFrameImpl(frame)->frame()->document();
|
| + return document->hasReceivedUserGesture();
|
| }
|
|
|
| WebUserGestureToken WebUserGestureIndicator::currentUserGestureToken() {
|
|
|