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

Issue 615493005: c/b/supervised_user: Use range-based for where appropriate. (Closed)

Created:
6 years, 2 months ago by Marc Treib
Modified:
6 years, 2 months ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews, pam+watch_chromium.org, stevenjb+watch_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

c/b/supervised_user: Use range-based for where appropriate. We're now allowed to use some C++11 features: http://chromium-cpp.appspot.com/ :) This CL also includes a few cleanups (mostly includes) courtesy of "git cl lint". BUG= Committed: https://crrev.com/5844aca18461dfcc1db056fcc9e8ff0f7a41eebb Cr-Commit-Position: refs/heads/master@{#297417}

Patch Set 1 #

Total comments: 2

Patch Set 2 : rebase #

Patch Set 3 : less auto #

Patch Set 4 : fix Win build #

Total comments: 4

Patch Set 5 : nit #

Patch Set 6 : fix CrOS #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -163 lines) Patch
M chrome/browser/supervised_user/chromeos/manager_password_service.cc View 1 2 3 4 5 1 chunk +5 lines, -9 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_pref_store.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_pref_store.cc View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_registration_utility_unittest.cc View 1 2 1 chunk +4 lines, -5 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_service.cc View 1 2 3 4 3 chunks +9 lines, -15 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_service_unittest.cc View 1 2 2 chunks +8 lines, -12 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_settings_service.cc View 1 2 3 chunks +11 lines, -14 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_settings_service_unittest.cc View 1 2 4 chunks +12 lines, -23 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_shared_settings_service.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_shared_settings_service.cc View 1 2 5 chunks +11 lines, -12 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_shared_settings_service_unittest.cc View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_site_list.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/supervised_user/supervised_user_site_list.cc View 1 2 7 chunks +11 lines, -19 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_sync_service.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_sync_service.cc View 1 2 5 chunks +11 lines, -13 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_sync_service_unittest.cc View 1 2 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_url_filter.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_url_filter.cc View 1 2 6 chunks +18 lines, -28 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
Marc Treib
Woo C++11! PTAL! (There's a few places where "auto" outside of a "for" might be ...
6 years, 2 months ago (2014-09-29 13:09:55 UTC) #2
Bernhard Bauer
Woo C++11! :) TBH, I don't think using auto here actually improves things, because a ...
6 years, 2 months ago (2014-09-29 16:16:52 UTC) #3
Marc Treib
Agreed - I originally read the style guide as "use auto unless you want copies", ...
6 years, 2 months ago (2014-09-30 09:28:05 UTC) #4
Bernhard Bauer
Very nice! LGTM https://codereview.chromium.org/615493005/diff/60001/chrome/browser/supervised_user/supervised_user_service.cc File chrome/browser/supervised_user/supervised_user_service.cc (right): https://codereview.chromium.org/615493005/diff/60001/chrome/browser/supervised_user/supervised_user_service.cc#newcode103 chrome/browser/supervised_user/supervised_user_service.cc:103: /// TODO(bauerb): This is kinda ugly. ...
6 years, 2 months ago (2014-09-30 10:02:08 UTC) #5
Marc Treib
https://codereview.chromium.org/615493005/diff/60001/chrome/browser/supervised_user/supervised_user_service.cc File chrome/browser/supervised_user/supervised_user_service.cc (right): https://codereview.chromium.org/615493005/diff/60001/chrome/browser/supervised_user/supervised_user_service.cc#newcode103 chrome/browser/supervised_user/supervised_user_service.cc:103: /// TODO(bauerb): This is kinda ugly. On 2014/09/30 10:02:07, ...
6 years, 2 months ago (2014-09-30 10:21:49 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/615493005/60001
6 years, 2 months ago (2014-09-30 10:34:17 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/615493005/80001
6 years, 2 months ago (2014-09-30 12:14:17 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_swarming/builds/19221)
6 years, 2 months ago (2014-09-30 12:58:52 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/615493005/100001
6 years, 2 months ago (2014-09-30 13:31:00 UTC) #14
commit-bot: I haz the power
Committed patchset #6 (id:100001) as 58bf95c7042b2b7775378530e6b3f0df98c73cb9
6 years, 2 months ago (2014-09-30 14:08:45 UTC) #15
commit-bot: I haz the power
6 years, 2 months ago (2014-09-30 14:09:31 UTC) #16
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/5844aca18461dfcc1db056fcc9e8ff0f7a41eebb
Cr-Commit-Position: refs/heads/master@{#297417}

Powered by Google App Engine
This is Rietveld 408576698