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

Issue 2424793002: Revert of Replace for loops with |arraysize| with for each loops (Closed)

Created:
4 years, 2 months ago by henrika (OOO until Aug 14)
Modified:
4 years, 2 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, rouslan+autofill_chromium.org, jam, browser-components-watch_chromium.org, jdonnelly+autofillwatch_chromium.org, darin-cc_chromium.org, tfarina, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of Replace for loops with |arraysize| with for each loops (patchset #2 id:20001 of https://codereview.chromium.org/2417783004/ ) Reason for revert: Speculative revert from sheriff. Suspect that the CL breaks components_unittests on Mac. https://uberchromegw.corp.google.com/i/chromium.mac/builders/Mac10.9%20Tests%20%28dbg%29/builds/31721/steps/components_unittests%20on%20Mac-10.9 Not sure. Will revert the revert if it does not help. Original issue's description: > Replace for loops with |arraysize| with for each loops > > This change replaces for-loops involving a loop variable and the > |arraysize| macro with a C++11 for-each-loop where appropriate. > > A few usages of |arraysize| in a for-loop remain, in these the loop > variable is used as well. This can be simply logging the iteration > number or indexing another array of the same size. > > BUG=655950 > > Committed: https://crrev.com/54e466c9fd2ff04136f8f305615910e8f9085642 > Cr-Commit-Position: refs/heads/master@{#425651} TBR=vabr@chromium.org,jdoerrie@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=655950 Committed: https://crrev.com/e00a337f9c62d1d32c315ecacc63cec380a36e27 Cr-Commit-Position: refs/heads/master@{#425660}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+229 lines, -199 lines) Patch
M components/autofill/content/renderer/form_cache.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M components/autofill/core/browser/address_i18n_unittest.cc View 2 chunks +8 lines, -8 lines 0 comments Download
M components/autofill/core/browser/address_unittest.cc View 2 chunks +6 lines, -5 lines 0 comments Download
M components/autofill/core/browser/autofill_data_util.cc View 1 chunk +7 lines, -6 lines 0 comments Download
M components/autofill/core/browser/autofill_ie_toolbar_import_win.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M components/autofill/core/browser/autofill_manager_unittest.cc View 4 chunks +15 lines, -16 lines 0 comments Download
M components/autofill/core/browser/autofill_merge_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M components/autofill/core/browser/autofill_profile.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/autofill/core/browser/contact_info_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M components/autofill/core/browser/credit_card.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M components/autofill/core/browser/credit_card_unittest.cc View 6 chunks +49 lines, -42 lines 0 comments Download
M components/autofill/core/browser/phone_field_unittest.cc View 6 chunks +24 lines, -24 lines 0 comments Download
M components/autofill/core/browser/phone_number_i18n_unittest.cc View 1 chunk +14 lines, -11 lines 0 comments Download
M components/autofill/core/browser/state_names.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M components/autofill/core/browser/ui/card_unmask_prompt_controller_impl_unittest.cc View 3 chunks +17 lines, -16 lines 0 comments Download
M components/autofill/core/browser/validation_unittest.cc View 2 chunks +25 lines, -20 lines 0 comments Download
M components/autofill/core/browser/webdata/autofill_table_unittest.cc View 2 chunks +10 lines, -9 lines 0 comments Download
M components/autofill/core/common/autofill_regexes_unittest.cc View 6 chunks +12 lines, -6 lines 0 comments Download
M components/autofill/core/common/autofill_util_unittest.cc View 3 chunks +22 lines, -21 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
henrika (OOO until Aug 14)
Created Revert of Replace for loops with |arraysize| with for each loops
4 years, 2 months ago (2016-10-17 12:15:09 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2424793002/1
4 years, 2 months ago (2016-10-17 12:15:21 UTC) #3
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-10-17 12:16:32 UTC) #5
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/e00a337f9c62d1d32c315ecacc63cec380a36e27 Cr-Commit-Position: refs/heads/master@{#425660}
4 years, 2 months ago (2016-10-17 12:19:12 UTC) #7
jdoerrie
4 years, 1 month ago (2016-11-03 13:47:49 UTC) #8
Message was sent while issue was closed.
A revert of this CL (patchset #1 id:1) has been created in
https://codereview.chromium.org/2478463002/ by jdoerrie@chromium.org.

The reason for reverting is: Relanding, because the flaky unittest was fixed:
http://crbug.com/656926.

Powered by Google App Engine
This is Rietveld 408576698