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

Unified Diff: third_party/WebKit/Source/modules/webdatabase/QuotaTracker.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/modules/webdatabase/QuotaTracker.cpp
diff --git a/third_party/WebKit/Source/modules/webdatabase/QuotaTracker.cpp b/third_party/WebKit/Source/modules/webdatabase/QuotaTracker.cpp
index 326a22099cdd98d19369d6d87354414faa0e6db2..b4b0ece3c3947a55816dbeae370f1a93023845ae 100644
--- a/third_party/WebKit/Source/modules/webdatabase/QuotaTracker.cpp
+++ b/third_party/WebKit/Source/modules/webdatabase/QuotaTracker.cpp
@@ -73,7 +73,7 @@ void QuotaTracker::updateDatabaseSize(SecurityOrigin* origin,
unsigned long long databaseSize) {
MutexLocker lockData(m_dataGuard);
HashMap<String, SizeMap>::ValueType* it =
- m_databaseSizes.add(origin->toRawString(), SizeMap()).storedValue;
+ m_databaseSizes.insert(origin->toRawString(), SizeMap()).storedValue;
it->value.set(databaseName, databaseSize);
}

Powered by Google App Engine
This is Rietveld 408576698