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

Unified Diff: third_party/WebKit/Source/platform/blob/BlobRegistry.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/platform/blob/BlobRegistry.cpp
diff --git a/third_party/WebKit/Source/platform/blob/BlobRegistry.cpp b/third_party/WebKit/Source/platform/blob/BlobRegistry.cpp
index b376f281654519d6d47f226f3c63a262355fb7c0..24a8f2ed2342dd196263468cf2ba9538a659e649 100644
--- a/third_party/WebKit/Source/platform/blob/BlobRegistry.cpp
+++ b/third_party/WebKit/Source/platform/blob/BlobRegistry.cpp
@@ -81,7 +81,7 @@ static void saveToOriginMap(SecurityOrigin* origin, const KURL& url) {
//
// See the definition of the origin of a Blob URL in the File API spec.
if (origin && BlobURL::getOrigin(url) == "null")
- originMap()->add(url.getString(), origin);
+ originMap()->insert(url.getString(), origin);
}
static void removeFromOriginMap(const KURL& url) {

Powered by Google App Engine
This is Rietveld 408576698