| Index: third_party/WebKit/Source/core/input/EventHandler.cpp
|
| diff --git a/third_party/WebKit/Source/core/input/EventHandler.cpp b/third_party/WebKit/Source/core/input/EventHandler.cpp
|
| index a66c15dce78fa71289f68c443e606c3a4a04a964..04b488f2cf5755fc2d017c11b7f5758beeeb7fc9 100644
|
| --- a/third_party/WebKit/Source/core/input/EventHandler.cpp
|
| +++ b/third_party/WebKit/Source/core/input/EventHandler.cpp
|
| @@ -100,8 +100,10 @@
|
| #include "platform/scroll/Scrollbar.h"
|
| #include "wtf/Assertions.h"
|
| #include "wtf/CurrentTime.h"
|
| +#include "wtf/PtrUtil.h"
|
| #include "wtf/StdLibExtras.h"
|
| #include "wtf/TemporaryChange.h"
|
| +#include <memory>
|
|
|
| namespace blink {
|
|
|
| @@ -1114,12 +1116,12 @@ WebInputEventResult EventHandler::handleMouseReleaseEvent(const PlatformMouseEve
|
| if (!mouseEvent.fromTouch())
|
| m_frame->selection().setCaretBlinkingSuspended(false);
|
|
|
| - OwnPtr<UserGestureIndicator> gestureIndicator;
|
| + std::unique_ptr<UserGestureIndicator> gestureIndicator;
|
|
|
| if (m_frame->localFrameRoot()->eventHandler().m_lastMouseDownUserGestureToken)
|
| - gestureIndicator = adoptPtr(new UserGestureIndicator(m_frame->localFrameRoot()->eventHandler().m_lastMouseDownUserGestureToken.release()));
|
| + gestureIndicator = wrapUnique(new UserGestureIndicator(m_frame->localFrameRoot()->eventHandler().m_lastMouseDownUserGestureToken.release()));
|
| else
|
| - gestureIndicator = adoptPtr(new UserGestureIndicator(DefinitelyProcessingUserGesture));
|
| + gestureIndicator = wrapUnique(new UserGestureIndicator(DefinitelyProcessingUserGesture));
|
|
|
| #if OS(WIN)
|
| if (Page* page = m_frame->page())
|
|
|