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

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

Issue 2151933003: Change WTF::TemporaryChange to be an alias for AutoReset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: TemporaryChange -> AutoReset 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/WebViewImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
index e08a01805ad9c4bb57c3f93eac59df4d4deff495..94d4a6f4a95e5d2bd084444528acf1707c6bbf5c 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -180,10 +180,10 @@
#include "web/WebPluginContainerImpl.h"
#include "web/WebRemoteFrameImpl.h"
#include "web/WebSettingsImpl.h"
+#include "wtf/AutoReset.h"
#include "wtf/CurrentTime.h"
#include "wtf/PtrUtil.h"
#include "wtf/RefPtr.h"
-#include "wtf/TemporaryChange.h"
#include <memory>
#if USE(DEFAULT_RENDER_THEME)
@@ -2171,7 +2171,7 @@ WebInputEventResult WebViewImpl::handleInputEvent(const WebInputEvent& inputEven
if (m_ignoreInputEvents)
return WebInputEventResult::NotHandled;
- TemporaryChange<const WebInputEvent*> currentEventChange(m_currentInputEvent, &inputEvent);
+ AutoReset<const WebInputEvent*> currentEventChange(&m_currentInputEvent, &inputEvent);
UIEventWithKeyState::clearNewTabModifierSetFromIsolatedWorld();
bool isPointerLocked = false;
« no previous file with comments | « third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp ('k') | third_party/WebKit/Source/web/tests/DocumentLoaderTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698