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

Unified Diff: third_party/WebKit/Source/modules/webdatabase/DatabaseTracker.cpp

Issue 2673543003: Migrate WTF::HashMap::remove() to ::erase() (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/modules/webdatabase/DatabaseTracker.cpp
diff --git a/third_party/WebKit/Source/modules/webdatabase/DatabaseTracker.cpp b/third_party/WebKit/Source/modules/webdatabase/DatabaseTracker.cpp
index 2eeb8c7a460cfc346f8652bd89304d406e066f0d..cf537dd5fd13ca5d20532af47a3797a5a5794380 100644
--- a/third_party/WebKit/Source/modules/webdatabase/DatabaseTracker.cpp
+++ b/third_party/WebKit/Source/modules/webdatabase/DatabaseTracker.cpp
@@ -134,10 +134,10 @@ void DatabaseTracker::removeOpenDatabase(Database* database) {
databaseSet->remove(found);
if (databaseSet->isEmpty()) {
- nameMap->remove(name);
+ nameMap->erase(name);
delete databaseSet;
if (nameMap->isEmpty()) {
- m_openDatabaseMap->remove(originString);
+ m_openDatabaseMap->erase(originString);
delete nameMap;
}
}

Powered by Google App Engine
This is Rietveld 408576698