Commit 59467159 authored by viettrungluu's avatar viettrungluu Committed by Commit bot

Convert ARRAYSIZE_UNSAFE -> arraysize in storage/.

R=michaeln@chromium.org
BUG=423134

Review URL: https://codereview.chromium.org/657303002

Cr-Commit-Position: refs/heads/master@{#299885}
parent 72ee6e0a
......@@ -584,7 +584,7 @@ void FileSystemContext::RegisterBackend(FileSystemBackend* backend) {
kFileSystemTypeExternal,
};
// Register file system backends for public mount types.
for (size_t j = 0; j < ARRAYSIZE_UNSAFE(mount_types); ++j) {
for (size_t j = 0; j < arraysize(mount_types); ++j) {
if (backend->CanHandleType(mount_types[j])) {
const bool inserted = backend_map_.insert(
std::make_pair(mount_types[j], backend)).second;
......
......@@ -476,8 +476,8 @@ bool QuotaDatabase::LazyOpen(bool create_if_needed) {
}
bool QuotaDatabase::EnsureDatabaseVersion() {
static const size_t kTableCount = ARRAYSIZE_UNSAFE(kTables);
static const size_t kIndexCount = ARRAYSIZE_UNSAFE(kIndexes);
static const size_t kTableCount = arraysize(kTables);
static const size_t kIndexCount = arraysize(kIndexes);
if (!sql::MetaTable::DoesTableExist(db_.get()))
return CreateSchema(db_.get(), meta_table_.get(),
kCurrentVersion, kCompatibleVersion,
......
......@@ -171,7 +171,7 @@ bool ParseFileSystemSchemeURL(const GURL& url,
// A path of the inner_url contains only mount type part (e.g. "/temporary").
DCHECK(url.inner_url());
std::string inner_path = url.inner_url()->path();
for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kValidTypes); ++i) {
for (size_t i = 0; i < arraysize(kValidTypes); ++i) {
if (inner_path == kValidTypes[i].dir) {
file_system_type = kValidTypes[i].type;
break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment