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

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

Issue 2709033003: Migrate WTF::HashMap::get() to ::at() (Closed)
Patch Set: rebase 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/Database.cpp
diff --git a/third_party/WebKit/Source/modules/webdatabase/Database.cpp b/third_party/WebKit/Source/modules/webdatabase/Database.cpp
index d7834ead3111562ef12dffd5cbfc3db12c04aff9..8c2b1e40ceb3e0936ca2a24225a6c5709db8c11f 100644
--- a/third_party/WebKit/Source/modules/webdatabase/Database.cpp
+++ b/third_party/WebKit/Source/modules/webdatabase/Database.cpp
@@ -201,7 +201,7 @@ static DatabaseGuid guidForOriginAndName(const String& origin,
typedef HashMap<String, int> IDGuidMap;
DEFINE_STATIC_LOCAL_WITH_LOCK(IDGuidMap, stringIdentifierToGUIDMap, ());
- DatabaseGuid guid = stringIdentifierToGUIDMap.get(stringID);
+ DatabaseGuid guid = stringIdentifierToGUIDMap.at(stringID);
if (!guid) {
static int currentNewGUID = 1;
guid = currentNewGUID++;
@@ -669,7 +669,7 @@ void Database::setExpectedVersion(const String& version) {
String Database::getCachedVersion() const {
MutexLocker locker(guidMutex());
- return guidToVersionMap().get(m_guid).isolatedCopy();
+ return guidToVersionMap().at(m_guid).isolatedCopy();
}
void Database::setCachedVersion(const String& actualVersion) {

Powered by Google App Engine
This is Rietveld 408576698