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

Unified Diff: third_party/WebKit/Source/platform/ScriptForbiddenScope.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/ScriptForbiddenScope.h
diff --git a/third_party/WebKit/Source/platform/ScriptForbiddenScope.h b/third_party/WebKit/Source/platform/ScriptForbiddenScope.h
index 0c077ca37e4caf2b7f2343651836035e2f3269e7..4a8e814454cab02ad9fdd6837175c59d9136d435 100644
--- a/third_party/WebKit/Source/platform/ScriptForbiddenScope.h
+++ b/third_party/WebKit/Source/platform/ScriptForbiddenScope.h
@@ -7,8 +7,8 @@
#include "platform/PlatformExport.h"
#include "wtf/Allocator.h"
+#include "wtf/AutoReset.h"
#include "wtf/Optional.h"
-#include "wtf/TemporaryChange.h"
namespace blink {
@@ -28,7 +28,7 @@ public:
AllowUserAgentScript();
~AllowUserAgentScript();
private:
- Optional<TemporaryChange<unsigned>> m_change;
+ Optional<AutoReset<unsigned>> m_change;
};
static void enter();
« no previous file with comments | « third_party/WebKit/Source/platform/LifecycleNotifier.h ('k') | third_party/WebKit/Source/platform/ScriptForbiddenScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698