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

Unified Diff: third_party/WebKit/Source/core/dom/ScopedWindowFocusAllowedIndicator.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/dom/ScopedWindowFocusAllowedIndicator.h
diff --git a/third_party/WebKit/Source/core/dom/ScopedWindowFocusAllowedIndicator.h b/third_party/WebKit/Source/core/dom/ScopedWindowFocusAllowedIndicator.h
index 3b221818dfffef2f3533ca7d242a7ce3b998b475..8d6b184e7bbe037d9f86b0a5aeaa2730640a951f 100644
--- a/third_party/WebKit/Source/core/dom/ScopedWindowFocusAllowedIndicator.h
+++ b/third_party/WebKit/Source/core/dom/ScopedWindowFocusAllowedIndicator.h
@@ -16,7 +16,7 @@ class ScopedWindowFocusAllowedIndicator final {
WTF_MAKE_NONCOPYABLE(ScopedWindowFocusAllowedIndicator);
public:
explicit ScopedWindowFocusAllowedIndicator(ExecutionContext* executionContext)
- : m_observer(adoptPtrWillBeNoop(new Observer(executionContext)))
+ : m_observer((new Observer(executionContext)))
{
}
~ScopedWindowFocusAllowedIndicator()
@@ -25,8 +25,8 @@ public:
}
private:
- class Observer final : public NoBaseWillBeGarbageCollectedFinalized<Observer>, public ContextLifecycleObserver {
- WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Observer);
+ class Observer final : public GarbageCollectedFinalized<Observer>, public ContextLifecycleObserver {
+ USING_GARBAGE_COLLECTED_MIXIN(Observer);
public:
explicit Observer(ExecutionContext* executionContext)
: ContextLifecycleObserver(executionContext)
@@ -51,7 +51,7 @@ private:
// The Observer indirection is needed to keep
// ScopedWindowFocusAllowedIndicator off-heap and thus allows its destructor
// to call executionContext()->consumeWindowInteraction().
- OwnPtrWillBePersistent<Observer> m_observer;
+ Persistent<Observer> m_observer;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698