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

Unified Diff: third_party/WebKit/Source/platform/testing/weburl_loader_mock_factory_impl.cc

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/platform/testing/weburl_loader_mock_factory_impl.cc
diff --git a/third_party/WebKit/Source/platform/testing/weburl_loader_mock_factory_impl.cc b/third_party/WebKit/Source/platform/testing/weburl_loader_mock_factory_impl.cc
index 9d60cd27cd816532086b8c22c488c85fec66c658..9af29ab7cd8dc16c3733d1820afa78b6cf39d20c 100644
--- a/third_party/WebKit/Source/platform/testing/weburl_loader_mock_factory_impl.cc
+++ b/third_party/WebKit/Source/platform/testing/weburl_loader_mock_factory_impl.cc
@@ -66,11 +66,11 @@ void WebURLLoaderMockFactoryImpl::registerErrorURL(
void WebURLLoaderMockFactoryImpl::unregisterURL(const blink::WebURL& url) {
URLToResponseMap::iterator iter = url_to_response_info_.find(url);
DCHECK(iter != url_to_response_info_.end());
- url_to_response_info_.remove(iter);
+ url_to_response_info_.erase(iter);
URLToErrorMap::iterator error_iter = url_to_error_info_.find(url);
if (error_iter != url_to_error_info_.end())
- url_to_error_info_.remove(error_iter);
+ url_to_error_info_.erase(error_iter);
}
void WebURLLoaderMockFactoryImpl::unregisterAllURLsAndClearMemoryCache() {

Powered by Google App Engine
This is Rietveld 408576698