Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1078)

Unified Diff: third_party/WebKit/Source/web/WebScopedUserGesture.cpp

Issue 2143323002: Remove WebPrivateOwnPtr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698