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

Unified Diff: third_party/WebKit/Source/core/loader/private/CrossOriginPreflightResultCache.cpp

Issue 2759703002: Migrate WTF::HashMap::remove() to ::erase() (Closed)
Patch Set: rebase, fix one platform-specific reference Created 3 years, 9 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/loader/private/CrossOriginPreflightResultCache.cpp
diff --git a/third_party/WebKit/Source/core/loader/private/CrossOriginPreflightResultCache.cpp b/third_party/WebKit/Source/core/loader/private/CrossOriginPreflightResultCache.cpp
index 11d7f185d3d5ca32229ca61a359698435462ed35..dbec4c6a72836cd95a7f6d47431bb1a5eee3f25a 100644
--- a/third_party/WebKit/Source/core/loader/private/CrossOriginPreflightResultCache.cpp
+++ b/third_party/WebKit/Source/core/loader/private/CrossOriginPreflightResultCache.cpp
@@ -203,7 +203,7 @@ bool CrossOriginPreflightResultCache::canSkipPreflight(
if (cacheIt->value->allowsRequest(includeCredentials, method, requestHeaders))
return true;
- m_preflightHashMap.remove(cacheIt);
+ m_preflightHashMap.erase(cacheIt);
return false;
}

Powered by Google App Engine
This is Rietveld 408576698