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

Unified Diff: chrome/browser/profile_resetter/profile_resetter.cc

Issue 655413002: Convert ARRAYSIZE_UNSAFE -> arraysize in chrome/browser/. (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
Index: chrome/browser/profile_resetter/profile_resetter.cc
diff --git a/chrome/browser/profile_resetter/profile_resetter.cc b/chrome/browser/profile_resetter/profile_resetter.cc
index 616babbaa34961ebded4f5e1930ba907d0930e22..b96177e6dd5e4f3a088d188222470aaea4f44a4a 100644
--- a/chrome/browser/profile_resetter/profile_resetter.cc
+++ b/chrome/browser/profile_resetter/profile_resetter.cc
@@ -117,7 +117,7 @@ void ProfileResetter::Reset(
};
ResettableFlags reset_triggered_for_flags = 0;
- for (size_t i = 0; i < ARRAYSIZE_UNSAFE(flagToMethod); ++i) {
+ for (size_t i = 0; i < arraysize(flagToMethod); ++i) {
if (resettable_flags & flagToMethod[i].flag) {
reset_triggered_for_flags |= flagToMethod[i].flag;
(this->*flagToMethod[i].method)();
« no previous file with comments | « chrome/browser/profile_resetter/jtl_interpreter_unittest.cc ('k') | chrome/browser/profiles/profile_info_cache_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698