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

Unified Diff: net/base/net_log_logger.cc

Issue 662553002: Convert ARRAYSIZE_UNSAFE -> arraysize in net/. (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 | « net/base/mime_util_unittest.cc ('k') | net/base/net_util_icu_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/net_log_logger.cc
diff --git a/net/base/net_log_logger.cc b/net/base/net_log_logger.cc
index 0c0f1c925b64f5e194cdf6e5167402808e48c534..76b5b32224fe31d3004877180ab091239f66cea5 100644
--- a/net/base/net_log_logger.cc
+++ b/net/base/net_log_logger.cc
@@ -117,7 +117,7 @@ base::DictionaryValue* NetLogLogger::GetConstants() {
{
base::DictionaryValue* dict = new base::DictionaryValue();
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kCertStatusFlags); i++)
+ for (size_t i = 0; i < arraysize(kCertStatusFlags); i++)
dict->SetInteger(kCertStatusFlags[i].name, kCertStatusFlags[i].constant);
constants_dict->Set("certStatusFlag", dict);
@@ -128,7 +128,7 @@ base::DictionaryValue* NetLogLogger::GetConstants() {
{
base::DictionaryValue* dict = new base::DictionaryValue();
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kLoadFlags); i++)
+ for (size_t i = 0; i < arraysize(kLoadFlags); i++)
dict->SetInteger(kLoadFlags[i].name, kLoadFlags[i].constant);
constants_dict->Set("loadFlag", dict);
@@ -139,7 +139,7 @@ base::DictionaryValue* NetLogLogger::GetConstants() {
{
base::DictionaryValue* dict = new base::DictionaryValue();
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kLoadStateTable); i++)
+ for (size_t i = 0; i < arraysize(kLoadStateTable); i++)
dict->SetInteger(kLoadStateTable[i].name, kLoadStateTable[i].constant);
constants_dict->Set("loadState", dict);
@@ -150,7 +150,7 @@ base::DictionaryValue* NetLogLogger::GetConstants() {
{
base::DictionaryValue* dict = new base::DictionaryValue();
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kNetErrors); i++)
+ for (size_t i = 0; i < arraysize(kNetErrors); i++)
dict->SetInteger(ErrorToShortString(kNetErrors[i]), kNetErrors[i]);
constants_dict->Set("netError", dict);
« no previous file with comments | « net/base/mime_util_unittest.cc ('k') | net/base/net_util_icu_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698