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

Unified Diff: third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp

Issue 2671933002: Migrate WTF::HashMap::add() to ::insert() (Closed)
Patch Set: rebase, add TODOs Created 3 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/modules/remoteplayback/RemotePlayback.cpp
diff --git a/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp b/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp
index 6ed9d88efe63bc51e87baadb746a0a387964353a..9872053f3470ebb8fe113d2c3a49e2707b65dc35 100644
--- a/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp
+++ b/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp
@@ -83,10 +83,11 @@ ScriptPromise RemotePlayback::watchAvailability(
int id;
do {
id = getExecutionContext()->circularSequentialID();
- } while (!m_availabilityCallbacks
- .add(id, TraceWrapperMember<RemotePlaybackAvailabilityCallback>(
- this, callback))
- .isNewEntry);
+ } while (
+ !m_availabilityCallbacks
+ .insert(id, TraceWrapperMember<RemotePlaybackAvailabilityCallback>(
+ this, callback))
+ .isNewEntry);
// Report the current availability via the callback.
getExecutionContext()->postTask(

Powered by Google App Engine
This is Rietveld 408576698