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

Unified Diff: third_party/WebKit/Source/platform/ScriptForbiddenScope.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/platform/ScriptForbiddenScope.cpp
diff --git a/third_party/WebKit/Source/platform/ScriptForbiddenScope.cpp b/third_party/WebKit/Source/platform/ScriptForbiddenScope.cpp
index 5733aaa5288464d81f8989a97bae030d36a1ed6a..3274d0b1663e01d71559a2f0ce1c7bdb3c4b40a5 100644
--- a/third_party/WebKit/Source/platform/ScriptForbiddenScope.cpp
+++ b/third_party/WebKit/Source/platform/ScriptForbiddenScope.cpp
@@ -41,7 +41,7 @@ bool ScriptForbiddenScope::isScriptForbidden()
ScriptForbiddenScope::AllowUserAgentScript::AllowUserAgentScript()
{
if (isMainThread())
- m_change.emplace(s_scriptForbiddenCount, 0);
+ m_change.emplace(&s_scriptForbiddenCount, 0);
}
ScriptForbiddenScope::AllowUserAgentScript::~AllowUserAgentScript()
« no previous file with comments | « third_party/WebKit/Source/platform/ScriptForbiddenScope.h ('k') | third_party/WebKit/Source/platform/heap/HeapPage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698