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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorResourceContentLoader.cpp

Issue 2671933002: Migrate WTF::HashMap::add() to ::insert() (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/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 790d5bb7044dd3686fb54dcf56aef3790178f150..d4c677299399c613179ea51f019aca3be167ed2a 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