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

Unified Diff: content/browser/indexed_db/indexed_db_backing_store.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_backing_store.cc
diff --git a/content/browser/indexed_db/indexed_db_backing_store.cc b/content/browser/indexed_db/indexed_db_backing_store.cc
index a2dccf46329d7630b4c6d14e1471ad95cfa07415..56543bf966aeb1ce14bb64b316c16d43c00a959d 100644
--- a/content/browser/indexed_db/indexed_db_backing_store.cc
+++ b/content/browser/indexed_db/indexed_db_backing_store.cc
@@ -770,8 +770,8 @@ IndexedDBBackingStore::~IndexedDBBackingStore() {
for (const auto& pid : child_process_ids_granted_)
policy->RevokeAllPermissionsForFile(pid, blob_path_);
}
- STLDeleteContainerPairSecondPointers(incognito_blob_map_.begin(),
- incognito_blob_map_.end());
+ base::STLDeleteContainerPairSecondPointers(incognito_blob_map_.begin(),
+ incognito_blob_map_.end());
// db_'s destructor uses comparator_. The order of destruction is important.
db_.reset();
comparator_.reset();
@@ -917,7 +917,8 @@ bool IndexedDBBackingStore::ReadCorruptionInfo(const base::FilePath& path_base,
bool success = false;
if (file.IsValid()) {
std::string input_js(file_size, '\0');
- if (file_size == file.Read(0, string_as_array(&input_js), file_size)) {
+ if (file_size ==
+ file.Read(0, base::string_as_array(&input_js), file_size)) {
base::JSONReader reader;
std::unique_ptr<base::DictionaryValue> val(
base::DictionaryValue::From(reader.ReadToValue(input_js)));
@@ -4005,10 +4006,10 @@ IndexedDBBackingStore::Transaction::Transaction(
}
IndexedDBBackingStore::Transaction::~Transaction() {
- STLDeleteContainerPairSecondPointers(
- blob_change_map_.begin(), blob_change_map_.end());
- STLDeleteContainerPairSecondPointers(incognito_blob_map_.begin(),
- incognito_blob_map_.end());
+ base::STLDeleteContainerPairSecondPointers(blob_change_map_.begin(),
+ blob_change_map_.end());
+ base::STLDeleteContainerPairSecondPointers(incognito_blob_map_.begin(),
+ incognito_blob_map_.end());
DCHECK(!committing_);
}
« no previous file with comments | « content/browser/indexed_db/indexed_db_active_blob_registry.cc ('k') | content/browser/indexed_db/indexed_db_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698