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

Unified Diff: content/browser/indexed_db/indexed_db_database.cc

Issue 2228403003: content: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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: content/browser/indexed_db/indexed_db_database.cc
diff --git a/content/browser/indexed_db/indexed_db_database.cc b/content/browser/indexed_db/indexed_db_database.cc
index e6b6bea2c10688acc963be327f68006717e49fd5..ac8829c98f2409630ba3f223c42f37031f2d1294 100644
--- a/content/browser/indexed_db/indexed_db_database.cc
+++ b/content/browser/indexed_db/indexed_db_database.cc
@@ -479,7 +479,7 @@ IndexedDBTransaction* IndexedDBDatabase::GetTransaction(
}
bool IndexedDBDatabase::ValidateObjectStoreId(int64_t object_store_id) const {
- if (!ContainsKey(metadata_.object_stores, object_store_id)) {
+ if (!base::ContainsKey(metadata_.object_stores, object_store_id)) {
DLOG(ERROR) << "Invalid object_store_id";
return false;
}
@@ -493,7 +493,7 @@ bool IndexedDBDatabase::ValidateObjectStoreIdAndIndexId(
return false;
const IndexedDBObjectStoreMetadata& object_store_metadata =
metadata_.object_stores.find(object_store_id)->second;
- if (!ContainsKey(object_store_metadata.indexes, index_id)) {
+ if (!base::ContainsKey(object_store_metadata.indexes, index_id)) {
DLOG(ERROR) << "Invalid index_id";
return false;
}
@@ -508,7 +508,7 @@ bool IndexedDBDatabase::ValidateObjectStoreIdAndOptionalIndexId(
const IndexedDBObjectStoreMetadata& object_store_metadata =
metadata_.object_stores.find(object_store_id)->second;
if (index_id != IndexedDBIndexMetadata::kInvalidId &&
- !ContainsKey(object_store_metadata.indexes, index_id)) {
+ !base::ContainsKey(object_store_metadata.indexes, index_id)) {
DLOG(ERROR) << "Invalid index_id";
return false;
}
@@ -522,7 +522,7 @@ bool IndexedDBDatabase::ValidateObjectStoreIdAndNewIndexId(
return false;
const IndexedDBObjectStoreMetadata& object_store_metadata =
metadata_.object_stores.find(object_store_id)->second;
- if (ContainsKey(object_store_metadata.indexes, index_id)) {
+ if (base::ContainsKey(object_store_metadata.indexes, index_id)) {
DLOG(ERROR) << "Invalid index_id";
return false;
}
@@ -540,7 +540,7 @@ void IndexedDBDatabase::CreateObjectStore(int64_t transaction_id,
return;
DCHECK_EQ(transaction->mode(), blink::WebIDBTransactionModeVersionChange);
- if (ContainsKey(metadata_.object_stores, object_store_id)) {
+ if (base::ContainsKey(metadata_.object_stores, object_store_id)) {
DLOG(ERROR) << "Invalid object_store_id";
return;
}
« no previous file with comments | « content/browser/indexed_db/indexed_db_backing_store.cc ('k') | content/browser/indexed_db/indexed_db_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698