diff options
author | brettw <brettw@chromium.org> | 2015-06-11 18:57:57 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-12 01:59:01 +0000 |
commit | 44ce0ec5b05184c4e33d597d4e5a32d9f38b15c2 (patch) | |
tree | 30eccdbbe72fb47810535fe56e0a8313be2db4b2 /storage | |
parent | 57ca2cd795596162f06a6aa67367d8ce0d9ded52 (diff) | |
download | chromium_src-44ce0ec5b05184c4e33d597d4e5a32d9f38b15c2.zip chromium_src-44ce0ec5b05184c4e33d597d4e5a32d9f38b15c2.tar.gz chromium_src-44ce0ec5b05184c4e33d597d4e5a32d9f38b15c2.tar.bz2 |
Move StartsWith[ASCII] to base namespace.
NOPRESUBMIT=true
(no presubmit due to removing base:: from a ScopedAllowIO)
Review URL: https://codereview.chromium.org/1172183002
Cr-Commit-Position: refs/heads/master@{#334108}
Diffstat (limited to 'storage')
4 files changed, 8 insertions, 8 deletions
diff --git a/storage/browser/blob/blob_url_request_job_factory.cc b/storage/browser/blob/blob_url_request_job_factory.cc index e09efe5..7efe280 100644 --- a/storage/browser/blob/blob_url_request_job_factory.cc +++ b/storage/browser/blob/blob_url_request_job_factory.cc @@ -78,7 +78,7 @@ scoped_ptr<BlobDataSnapshot> BlobProtocolHandler::LookupBlobData( // TODO(michaeln): Replace this use case and others like it with a BlobReader // impl that does not depend on urlfetching to perform this function. const std::string kPrefix("blob:uuid/"); - if (!StartsWithASCII(request->url().spec(), kPrefix, true)) + if (!base::StartsWithASCII(request->url().spec(), kPrefix, true)) return NULL; std::string uuid = request->url().spec().substr(kPrefix.length()); scoped_ptr<BlobDataHandle> handle = context_->GetBlobDataFromUUID(uuid); diff --git a/storage/browser/fileapi/obfuscated_file_util.cc b/storage/browser/fileapi/obfuscated_file_util.cc index 67421c1..34c0718 100644 --- a/storage/browser/fileapi/obfuscated_file_util.cc +++ b/storage/browser/fileapi/obfuscated_file_util.cc @@ -901,7 +901,7 @@ void ObfuscatedFileUtil::CloseFileSystemForOriginAndType( const std::string key_prefix = GetDirectoryDatabaseKey(origin, type_string); for (DirectoryMap::iterator iter = directories_.lower_bound(key_prefix); iter != directories_.end();) { - if (!StartsWithASCII(iter->first, key_prefix, true)) + if (!base::StartsWithASCII(iter->first, key_prefix, true)) break; DCHECK(type_string.empty() || iter->first == key_prefix); scoped_ptr<SandboxDirectoryDatabase> database(iter->second); @@ -925,7 +925,7 @@ void ObfuscatedFileUtil::DestroyDirectoryDatabase( const std::string key_prefix = GetDirectoryDatabaseKey(origin, type_string); for (DirectoryMap::iterator iter = directories_.lower_bound(key_prefix); iter != directories_.end();) { - if (!StartsWithASCII(iter->first, key_prefix, true)) + if (!base::StartsWithASCII(iter->first, key_prefix, true)) break; DCHECK(type_string.empty() || iter->first == key_prefix); scoped_ptr<SandboxDirectoryDatabase> database(iter->second); diff --git a/storage/browser/fileapi/sandbox_directory_database.cc b/storage/browser/fileapi/sandbox_directory_database.cc index 4543863..ed900ec 100644 --- a/storage/browser/fileapi/sandbox_directory_database.cc +++ b/storage/browser/fileapi/sandbox_directory_database.cc @@ -200,7 +200,7 @@ bool DatabaseCheckHelper::ScanDatabase() { scoped_ptr<leveldb::Iterator> itr(db_->NewIterator(leveldb::ReadOptions())); for (itr->SeekToFirst(); itr->Valid(); itr->Next()) { std::string key = itr->key().ToString(); - if (StartsWithASCII(key, kChildLookupPrefix, true)) { + if (base::StartsWithASCII(key, kChildLookupPrefix, true)) { // key: "CHILD_OF:<parent_id>:<name>" // value: "<child_id>" ++num_hierarchy_links_in_db_; @@ -475,8 +475,8 @@ bool SandboxDirectoryDatabase::ListChildren( scoped_ptr<leveldb::Iterator> iter(db_->NewIterator(leveldb::ReadOptions())); iter->Seek(child_key_prefix); children->clear(); - while (iter->Valid() && - StartsWithASCII(iter->key().ToString(), child_key_prefix, true)) { + while (iter->Valid() && base::StartsWithASCII(iter->key().ToString(), + child_key_prefix, true)) { std::string child_id_string = iter->value().ToString(); FileId child_id; if (!base::StringToInt64(child_id_string, &child_id)) { diff --git a/storage/browser/fileapi/sandbox_origin_database.cc b/storage/browser/fileapi/sandbox_origin_database.cc index 1f149e3..1a91b10 100644 --- a/storage/browser/fileapi/sandbox_origin_database.cc +++ b/storage/browser/fileapi/sandbox_origin_database.cc @@ -291,8 +291,8 @@ bool SandboxOriginDatabase::ListAllOrigins( std::string origin_key_prefix = OriginToOriginKey(std::string()); iter->Seek(origin_key_prefix); origins->clear(); - while (iter->Valid() && - StartsWithASCII(iter->key().ToString(), origin_key_prefix, true)) { + while (iter->Valid() && base::StartsWithASCII(iter->key().ToString(), + origin_key_prefix, true)) { std::string origin = iter->key().ToString().substr(origin_key_prefix.length()); base::FilePath path = StringToFilePath(iter->value().ToString()); |