| 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 ce53beb7255a2b372be5a3c3ace3c7b9c799f08d..e3b134de57dcc3d05824b57fc5ae71613ce4807b 100644
|
| --- a/third_party/WebKit/Source/web/WebScopedUserGesture.cpp
|
| +++ b/third_party/WebKit/Source/web/WebScopedUserGesture.cpp
|
| @@ -35,20 +35,19 @@
|
|
|
| namespace blink {
|
|
|
| -void WebScopedUserGesture::initialize()
|
| +WebScopedUserGesture::WebScopedUserGesture(const WebUserGestureToken& token)
|
| {
|
| - m_indicator.reset(new UserGestureIndicator(DefinitelyProcessingNewUserGesture));
|
| + if (!token.isNull())
|
| + m_indicator.reset(new UserGestureIndicator(token));
|
| }
|
|
|
| -void WebScopedUserGesture::initializeWithToken(const WebUserGestureToken& token)
|
| +WebScopedUserGesture::WebScopedUserGesture()
|
| {
|
| - if (!token.isNull())
|
| - m_indicator.reset(new UserGestureIndicator(token));
|
| + m_indicator.reset(new UserGestureIndicator(DefinitelyProcessingNewUserGesture));
|
| }
|
|
|
| -void WebScopedUserGesture::reset()
|
| +WebScopedUserGesture::~WebScopedUserGesture()
|
| {
|
| - m_indicator.reset(0);
|
| }
|
|
|
| } // namespace blink
|
|
|