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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorResourceContentLoader.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/core/inspector/InspectorResourceContentLoader.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorResourceContentLoader.cpp b/third_party/WebKit/Source/core/inspector/InspectorResourceContentLoader.cpp
index 3ed2d05f3160974c6a11920e5db0997c8290acbd..28d6566d84e15ab94fe58ec60c35ea2294b6095d 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorResourceContentLoader.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorResourceContentLoader.cpp
@@ -170,7 +170,7 @@ void InspectorResourceContentLoader::ensureResourcesContentLoaded(
std::unique_ptr<WTF::Closure> callback) {
if (!m_started)
start();
- m_callbacks.add(clientId, Callbacks())
+ m_callbacks.insert(clientId, Callbacks())
.storedValue->value.push_back(std::move(callback));
checkDone();
}

Powered by Google App Engine
This is Rietveld 408576698