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

Unified Diff: content/common/android/address_parser_internal.cc

Issue 654403002: Convert ARRAYSIZE_UNSAFE -> arraysize in content/. (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 | « content/child/webcrypto/test/test_helpers.cc ('k') | content/common/database_identifier_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/android/address_parser_internal.cc
diff --git a/content/common/android/address_parser_internal.cc b/content/common/android/address_parser_internal.cc
index b1a440d3c8b0b555ef23c6fd3a1a8a7bb5aecc35..cc71b241ba4e9fe310fb7909fbac87f6be84d607 100644
--- a/content/common/android/address_parser_internal.cc
+++ b/content/common/android/address_parser_internal.cc
@@ -340,7 +340,7 @@ bool FindStateStartingInWord(WordList* words,
};
DCHECK_EQ(state_names_accumulative[arraysize(state_names_accumulative) - 1],
- static_cast<int>(ARRAYSIZE_UNSAFE(state_names)));
+ static_cast<int>(arraysize(state_names)));
const Word& first_word = words->at(state_first_word);
int length = first_word.end - first_word.begin;
@@ -590,7 +590,7 @@ bool IsValidLocationName(const Word& word) {
DCHECK_EQ(
location_names_accumulative[arraysize(location_names_accumulative) - 1],
- static_cast<int>(ARRAYSIZE_UNSAFE(location_names)));
+ static_cast<int>(arraysize(location_names)));
if (!IsAsciiAlpha(*word.begin))
return false;
« no previous file with comments | « content/child/webcrypto/test/test_helpers.cc ('k') | content/common/database_identifier_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698