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

Issue 2701003002: [Sync] Clean up ModelType code. (Closed)

Created:
3 years, 10 months ago by skym
Modified:
3 years, 9 months ago
Reviewers:
rkaplow, pavely
CC:
chromium-reviews, sync-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Clean up ModelType code. Various cleanup of ModelType usage and implementation. When enumerating the types in a hard coded manner, we should always strive to order the code to reflect model_type.h's order. ModelTypeSet's methods are slightly more inline-able. Updated ModelType histogram and static asserts. BUG= Review-Url: https://codereview.chromium.org/2701003002 Cr-Commit-Position: refs/heads/master@{#453616} Committed: https://chromium.googlesource.com/chromium/src/+/e8c91968e771bd1877d957db4d564728b31184d0

Patch Set 1 #

Patch Set 2 : bd #

Patch Set 3 : [Sync] Cleanup up ModelType code. #

Patch Set 4 : Rebase #

Patch Set 5 : Fixed two mistakes in PutRange. #

Patch Set 6 : Now with EnumSet tests. #

Total comments: 10

Patch Set 7 : Updated for Pavel's comments. #

Patch Set 8 : Switched int to size_t to fix compile. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -233 lines) Patch
M components/browser_sync/profile_sync_service.cc View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M components/sync/base/enum_set.h View 1 2 3 4 5 6 7 3 chunks +21 lines, -13 lines 0 comments Download
M components/sync/base/enum_set_unittest.cc View 1 2 3 4 5 6 3 chunks +18 lines, -0 lines 0 comments Download
M components/sync/base/model_type.h View 1 2 3 4 5 6 3 chunks +11 lines, -9 lines 0 comments Download
M components/sync/base/sync_prefs.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M components/sync/base/sync_prefs.cc View 1 2 3 4 3 chunks +31 lines, -26 lines 0 comments Download
M components/sync/driver/model_association_manager.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M components/sync/driver/user_selectable_sync_type.h View 1 2 3 4 5 6 2 chunks +5 lines, -28 lines 0 comments Download
M components/sync/syncable/model_type.cc View 1 2 12 chunks +86 lines, -143 lines 0 comments Download
M components/sync/syncable/nigori_util.cc View 1 2 4 chunks +11 lines, -9 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (33 generated)
skym
PTAL. While getting ready to add a new model type, I wanted to fix a ...
3 years, 10 months ago (2017-02-23 20:38:12 UTC) #20
pavely
lgtm https://codereview.chromium.org/2701003002/diff/100001/components/browser_sync/profile_sync_service.cc File components/browser_sync/profile_sync_service.cc (right): https://codereview.chromium.org/2701003002/diff/100001/components/browser_sync/profile_sync_service.cc#newcode1521 components/browser_sync/profile_sync_service.cc:1521: "If adding a user selectable type, updated " ...
3 years, 10 months ago (2017-02-23 23:23:03 UTC) #23
skym
https://codereview.chromium.org/2701003002/diff/100001/components/browser_sync/profile_sync_service.cc File components/browser_sync/profile_sync_service.cc (right): https://codereview.chromium.org/2701003002/diff/100001/components/browser_sync/profile_sync_service.cc#newcode1521 components/browser_sync/profile_sync_service.cc:1521: "If adding a user selectable type, updated " On ...
3 years, 9 months ago (2017-02-24 18:59:07 UTC) #24
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/2701003002/120001
3 years, 9 months ago (2017-02-24 19:00:08 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/372555)
3 years, 9 months ago (2017-02-24 19:15:07 UTC) #29
skym
Adding rkaplow@ for histograms.xml, PTAL
3 years, 9 months ago (2017-02-24 21:01:22 UTC) #32
rkaplow
lgtm
3 years, 9 months ago (2017-02-28 02:27:47 UTC) #36
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/2701003002/140001
3 years, 9 months ago (2017-02-28 15:04:54 UTC) #39
commit-bot: I haz the power
3 years, 9 months ago (2017-02-28 16:32:05 UTC) #42
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/e8c91968e771bd1877d957db4d56...

Powered by Google App Engine
This is Rietveld 408576698