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

Issue 2620773002: [Sync] Use ModelError all the way through to ModelTypeController. (Closed)

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

Description

[Sync] Use ModelError all the way through to ModelTypeController. ModelError is a simplified error object for use with USS types. This change replaces all uses of SyncError between the SharedModelTypeProcessor and the ModelTypeController with ModelError, so the translation to SyncError happens only when it needs to and not before, keeping the code simpler and cleaner. BUG=673883 Review-Url: https://codereview.chromium.org/2620773002 Cr-Commit-Position: refs/heads/master@{#442466} Committed: https://chromium.googlesource.com/chromium/src/+/8c8dd627152d4ff7704addbea1c769a56307a7c7

Patch Set 1 #

Total comments: 12

Patch Set 2 : const& everything and use a typedef. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -128 lines) Patch
M components/sync/driver/data_type_controller.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M components/sync/driver/directory_data_type_controller.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M components/sync/driver/model_type_controller.h View 1 3 chunks +3 lines, -5 lines 0 comments Download
M components/sync/driver/model_type_controller.cc View 1 6 chunks +26 lines, -18 lines 0 comments Download
M components/sync/driver/model_type_controller_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M components/sync/driver/proxy_data_type_controller.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M components/sync/driver/proxy_data_type_controller.cc View 1 1 chunk +0 lines, -6 lines 0 comments Download
M components/sync/model/fake_model_type_change_processor.h View 1 1 chunk +1 line, -1 line 0 comments Download
M components/sync/model/fake_model_type_change_processor.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
M components/sync/model/model_error.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M components/sync/model/model_type_change_processor.h View 1 3 chunks +7 lines, -9 lines 0 comments Download
M components/sync/model/model_type_sync_bridge.h View 1 2 chunks +1 line, -2 lines 0 comments Download
M components/sync/model/model_type_sync_bridge.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M components/sync/model/model_type_sync_bridge_unittest.cc View 1 3 chunks +1 line, -3 lines 0 comments Download
M components/sync/model_impl/shared_model_type_processor.h View 1 4 chunks +4 lines, -9 lines 0 comments Download
M components/sync/model_impl/shared_model_type_processor.cc View 1 5 chunks +16 lines, -25 lines 0 comments Download
M components/sync/model_impl/shared_model_type_processor_unittest.cc View 1 10 chunks +23 lines, -38 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 15 (10 generated)
maxbogue
Sky, PTAL! ModelError part 2: plumbing through to MTC.
3 years, 11 months ago (2017-01-09 23:12:33 UTC) #4
skym
lgtm https://codereview.chromium.org/2620773002/diff/1/components/sync/driver/model_type_controller.cc File components/sync/driver/model_type_controller.cc (right): https://codereview.chromium.org/2620773002/diff/1/components/sync/driver/model_type_controller.cc#newcode65 components/sync/driver/model_type_controller.cc:65: base::Closure dump_stack, Can these base::Closure and base::Callback params ...
3 years, 11 months ago (2017-01-09 23:35:09 UTC) #6
maxbogue
I've added ModelErrorHandler as a typedef to keep code clean with the addition of const& ...
3 years, 11 months ago (2017-01-10 00:34:34 UTC) #9
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/2620773002/20001
3 years, 11 months ago (2017-01-10 00:37:13 UTC) #12
commit-bot: I haz the power
3 years, 11 months ago (2017-01-10 03:31:14 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/8c8dd627152d4ff7704addbea1c7...

Powered by Google App Engine
This is Rietveld 408576698