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

Unified Diff: third_party/WebKit/Source/platform/EventDispatchForbiddenScope.h

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/platform/EventDispatchForbiddenScope.h
diff --git a/third_party/WebKit/Source/platform/EventDispatchForbiddenScope.h b/third_party/WebKit/Source/platform/EventDispatchForbiddenScope.h
index 5e97eb9707a795a8b0b8a057cc5d29bde4fb6790..5ed90103dc128d2f999b06ec0f13a76137455545 100644
--- a/third_party/WebKit/Source/platform/EventDispatchForbiddenScope.h
+++ b/third_party/WebKit/Source/platform/EventDispatchForbiddenScope.h
@@ -8,7 +8,7 @@
#include "platform/PlatformExport.h"
#include "wtf/Allocator.h"
#include "wtf/Assertions.h"
-#include "wtf/TemporaryChange.h"
+#include "wtf/AutoReset.h"
namespace blink {
@@ -42,7 +42,7 @@ public:
STACK_ALLOCATED();
public:
AllowUserAgentEvents()
- : m_change(s_count, 0)
+ : m_change(&s_count, 0)
{
ASSERT(isMainThread());
}
@@ -52,7 +52,7 @@ public:
ASSERT(!s_count);
}
- TemporaryChange<unsigned> m_change;
+ AutoReset<unsigned> m_change;
};
private:

Powered by Google App Engine
This is Rietveld 408576698