Currently, there are many places in the codebase where a for loop involving an explicit loop variable and the |arraysize| macro are used to iterate over a given array.
With the advent of C++11 and range based for loops, this can now be done using language features only. This has the advantage that the code is more concise, and arguably more readable and robust. Also it removes the need to include the "base/macro.h" header for this particular purpose. However, not all for loops involving |arraysize| can be replaced, for example this is not possible when the loop variable is used for logging or to index another array.
This is a change that is reasonable across the whole Chromium codebase, but for now we limit it to the autofill component.
Comment 1 by bugdroid1@chromium.org
, Oct 17 2016