| Index: third_party/WebKit/Source/web/WebScopedUserGesture.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebScopedUserGesture.cpp b/third_party/WebKit/Source/web/WebScopedUserGesture.cpp
|
| index ea902b6c8ead0a5a98d96429b87ac19849c6f846..4b48117a614e1b6e1480bb725d2c4b94f1c69905 100644
|
| --- a/third_party/WebKit/Source/web/WebScopedUserGesture.cpp
|
| +++ b/third_party/WebKit/Source/web/WebScopedUserGesture.cpp
|
| @@ -30,8 +30,10 @@
|
|
|
| #include "public/web/WebScopedUserGesture.h"
|
|
|
| +#include "core/dom/DocumentUserGestureToken.h"
|
| #include "platform/UserGestureIndicator.h"
|
| #include "public/web/WebUserGestureToken.h"
|
| +#include "web/WebLocalFrameImpl.h"
|
|
|
| namespace blink {
|
|
|
| @@ -40,9 +42,10 @@ WebScopedUserGesture::WebScopedUserGesture(const WebUserGestureToken& token) {
|
| m_indicator.reset(new UserGestureIndicator(token));
|
| }
|
|
|
| -WebScopedUserGesture::WebScopedUserGesture() {
|
| - m_indicator.reset(new UserGestureIndicator(
|
| - UserGestureToken::create(UserGestureToken::NewGesture)));
|
| +WebScopedUserGesture::WebScopedUserGesture(WebLocalFrame* frame) {
|
| + m_indicator.reset(new UserGestureIndicator(DocumentUserGestureToken::create(
|
| + frame ? toWebLocalFrameImpl(frame)->frame()->document() : nullptr,
|
| + UserGestureToken::NewGesture)));
|
| }
|
|
|
| WebScopedUserGesture::~WebScopedUserGesture() {}
|
|
|