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

Unified Diff: storage/common/fileapi/file_system_util.cc

Issue 657303002: Convert ARRAYSIZE_UNSAFE -> arraysize in storage/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « storage/browser/quota/quota_database.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/common/fileapi/file_system_util.cc
diff --git a/storage/common/fileapi/file_system_util.cc b/storage/common/fileapi/file_system_util.cc
index 0e818430225d53141d4d1ea16778c8b696d417c9..13ef05a75ebdc311bc176867a1de6b7bad0bb3cf 100644
--- a/storage/common/fileapi/file_system_util.cc
+++ b/storage/common/fileapi/file_system_util.cc
@@ -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;
« no previous file with comments | « storage/browser/quota/quota_database.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698