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

Unified Diff: third_party/WebKit/Source/platform/LifecycleNotifier.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: 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/LifecycleNotifier.h
diff --git a/third_party/WebKit/Source/platform/LifecycleNotifier.h b/third_party/WebKit/Source/platform/LifecycleNotifier.h
index 72d6680d78628c5f095463ca3978c2cf48b343ca..8a06847945238c6f96f05c4f1d96f304e267ad69 100644
--- a/third_party/WebKit/Source/platform/LifecycleNotifier.h
+++ b/third_party/WebKit/Source/platform/LifecycleNotifier.h
@@ -94,7 +94,7 @@ template<typename T, typename Observer>
inline void LifecycleNotifier<T, Observer>::notifyContextDestroyed()
{
// Observer unregistration is allowed, but effectively a no-op.
- TemporaryChange<IterationState> scope(m_iterationState, AllowingRemoval);
+ TemporaryChange<IterationState> scope(&m_iterationState, AllowingRemoval);
ObserverSet observers;
m_observers.swap(observers);
for (Observer* observer : observers) {

Powered by Google App Engine
This is Rietveld 408576698