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

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

Issue 2657443005: Migrate WTF::HashSet::add() to ::insert() [part 1 of N] (Closed)
Patch Set: Created 3 years, 11 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 f6b7412d2ac4620161c213929df8a7566b98f2c7..cf1480ee1a294e753ca65effe357bec04b9fa6f0 100644
--- a/third_party/WebKit/Source/platform/LifecycleNotifier.h
+++ b/third_party/WebKit/Source/platform/LifecycleNotifier.h
@@ -145,7 +145,7 @@ inline void LifecycleNotifier<T, Observer>::notifyContextDestroyed() {
template <typename T, typename Observer>
inline void LifecycleNotifier<T, Observer>::addObserver(Observer* observer) {
RELEASE_ASSERT(m_iterationState & AllowingAddition);
- m_observers.add(observer);
+ m_observers.insert(observer);
}
template <typename T, typename Observer>
@@ -153,7 +153,7 @@ inline void LifecycleNotifier<T, Observer>::removeObserver(Observer* observer) {
// If immediate removal isn't currently allowed,
// |observer| is recorded for pending removal.
if (m_iterationState & AllowPendingRemoval) {
- m_observers.add(observer);
+ m_observers.insert(observer);
return;
}
RELEASE_ASSERT(m_iterationState & AllowingRemoval);
« no previous file with comments | « third_party/WebKit/Source/modules/webusb/USBDevice.cpp ('k') | third_party/WebKit/Source/platform/MemoryCoordinator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698