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

Unified Diff: third_party/WebKit/Source/modules/webdatabase/QuotaTracker.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/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 695469b46b3e855bb17f9fb01d85dee4343be082..e5d6598566137b705c8bc55d75e501b40423fd90 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