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

Unified Diff: third_party/WebKit/Source/core/frame/PlatformEventDispatcher.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/core/frame/PlatformEventDispatcher.cpp
diff --git a/third_party/WebKit/Source/core/frame/PlatformEventDispatcher.cpp b/third_party/WebKit/Source/core/frame/PlatformEventDispatcher.cpp
index 76d1c9bb45fbe7165dbc5fc3d6b88b87f345f834..8ebef6e81b7e732db3a7874655a6a14ad674b807 100644
--- a/third_party/WebKit/Source/core/frame/PlatformEventDispatcher.cpp
+++ b/third_party/WebKit/Source/core/frame/PlatformEventDispatcher.cpp
@@ -5,7 +5,7 @@
#include "core/frame/PlatformEventDispatcher.h"
#include "core/frame/PlatformEventController.h"
-#include "wtf/TemporaryChange.h"
+#include "wtf/AutoReset.h"
namespace blink {
@@ -48,7 +48,7 @@ void PlatformEventDispatcher::notifyControllers()
return;
{
- TemporaryChange<bool> changeIsDispatching(m_isDispatching, true);
+ AutoReset<bool> changeIsDispatching(&m_isDispatching, true);
// HashSet m_controllers can be updated during an iteration, and it stops the iteration.
// Thus we store it into a Vector to access all elements.
HeapVector<Member<PlatformEventController>> snapshotVector;

Powered by Google App Engine
This is Rietveld 408576698