| Index: third_party/WebKit/Source/core/input/TouchEventManager.cpp
|
| diff --git a/third_party/WebKit/Source/core/input/TouchEventManager.cpp b/third_party/WebKit/Source/core/input/TouchEventManager.cpp
|
| index 200fe65e19c46d23a5dd977a52e76493cb453cdf..050041cc262cc46762e2347bfc7e79af0ee61627 100644
|
| --- a/third_party/WebKit/Source/core/input/TouchEventManager.cpp
|
| +++ b/third_party/WebKit/Source/core/input/TouchEventManager.cpp
|
| @@ -18,6 +18,8 @@
|
| #include "platform/Histogram.h"
|
| #include "platform/PlatformTouchEvent.h"
|
| #include "wtf/CurrentTime.h"
|
| +#include "wtf/PtrUtil.h"
|
| +#include <memory>
|
|
|
|
|
| namespace blink {
|
| @@ -478,7 +480,7 @@ WebInputEventResult TouchEventManager::handleTouchEvent(
|
| isSameOrigin = true;
|
| }
|
|
|
| - OwnPtr<UserGestureIndicator> gestureIndicator;
|
| + std::unique_ptr<UserGestureIndicator> gestureIndicator;
|
| if (isTap || isSameOrigin) {
|
| UserGestureUtilizedCallback* callback = 0;
|
| // These are cases we'd like to migrate to not hold a user gesture.
|
| @@ -489,9 +491,9 @@ WebInputEventResult TouchEventManager::handleTouchEvent(
|
| callback = this;
|
| }
|
| if (m_touchSequenceUserGestureToken)
|
| - gestureIndicator = adoptPtr(new UserGestureIndicator(m_touchSequenceUserGestureToken.release(), callback));
|
| + gestureIndicator = wrapUnique(new UserGestureIndicator(m_touchSequenceUserGestureToken.release(), callback));
|
| else
|
| - gestureIndicator = adoptPtr(new UserGestureIndicator(DefinitelyProcessingUserGesture, callback));
|
| + gestureIndicator = wrapUnique(new UserGestureIndicator(DefinitelyProcessingUserGesture, callback));
|
| m_touchSequenceUserGestureToken = UserGestureIndicator::currentToken();
|
| }
|
|
|
|
|