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

Issue 420633002: [Sync] Cleanup datatype configuration error handling. (Closed)

Created:
6 years, 5 months ago by Nicolas Zea
Modified:
6 years, 4 months ago
Reviewers:
haitaol1
CC:
chromium-reviews, tim+watch_chromium.org, zea+watch_chromium.org, benquan, haitaol+watch_chromium.org, Dane Wallinga, dyu1, estade+watch_chromium.org, Ilya Sherman, rouslan+autofillwatch_chromium.org, maniscalco+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

[Sync] Cleanup datatype configuration error handling. The FailedDataTypeHandler is now informed immediately of failures, including datatype errors, and is therefore authoritative source for all errors. As such, partial success is no longer tracked and the various ModelTypeSets for error types in configure results are removed. BUG=368834 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288464

Patch Set 1 #

Patch Set 2 : Rebase and fixes #

Patch Set 3 : More review #

Patch Set 4 : Fix unready #

Total comments: 8

Patch Set 5 : Address comments #

Patch Set 6 : Change unrecoverable errors to track multiple types #

Total comments: 6

Patch Set 7 : Fixes #

Patch Set 8 : Rebase and fix tests #

Total comments: 4

Patch Set 9 : Fix compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+401 lines, -496 lines) Patch
M chrome/browser/sync/backend_migrator.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/sync/backend_migrator_unittest.cc View 1 1 chunk +1 line, -5 lines 0 comments Download
M chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/frontend_data_type_controller.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/frontend_data_type_controller.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/frontend_data_type_controller_mock.h View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/frontend_data_type_controller_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/non_frontend_data_type_controller.h View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/non_frontend_data_type_controller.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/non_frontend_data_type_controller_mock.h View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/non_frontend_data_type_controller_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 5 4 chunks +9 lines, -12 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_startup_unittest.cc View 1 2 3 4 5 6 7 7 chunks +26 lines, -17 lines 0 comments Download
M components/sync_driver/data_type_controller.h View 1 3 chunks +5 lines, -4 lines 0 comments Download
M components/sync_driver/data_type_controller.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/sync_driver/data_type_controller_mock.h View 1 chunk +1 line, -1 line 0 comments Download
M components/sync_driver/data_type_manager.h View 1 2 chunks +2 lines, -21 lines 0 comments Download
M components/sync_driver/data_type_manager.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -20 lines 0 comments Download
M components/sync_driver/data_type_manager_impl.h View 2 chunks +4 lines, -3 lines 0 comments Download
M components/sync_driver/data_type_manager_impl.cc View 1 2 3 4 5 6 8 chunks +40 lines, -72 lines 0 comments Download
M components/sync_driver/data_type_manager_impl_unittest.cc View 1 2 3 6 chunks +39 lines, -5 lines 0 comments Download
M components/sync_driver/failed_data_types_handler.h View 1 2 3 4 5 1 chunk +8 lines, -2 lines 0 comments Download
M components/sync_driver/failed_data_types_handler.cc View 1 2 3 4 5 6 4 chunks +21 lines, -3 lines 0 comments Download
M components/sync_driver/fake_data_type_controller.h View 1 2 3 2 chunks +8 lines, -13 lines 0 comments Download
M components/sync_driver/fake_data_type_controller.cc View 1 2 3 7 chunks +27 lines, -9 lines 0 comments Download
M components/sync_driver/model_association_manager.h View 1 2 4 chunks +4 lines, -19 lines 0 comments Download
M components/sync_driver/model_association_manager.cc View 1 2 3 4 12 chunks +63 lines, -110 lines 0 comments Download
M components/sync_driver/model_association_manager_unittest.cc View 1 11 chunks +53 lines, -100 lines 0 comments Download
M components/sync_driver/non_ui_data_type_controller.h View 2 chunks +3 lines, -3 lines 0 comments Download
M components/sync_driver/non_ui_data_type_controller.cc View 1 2 3 4 5 6 7 9 chunks +22 lines, -19 lines 0 comments Download
M components/sync_driver/non_ui_data_type_controller_mock.h View 1 chunk +3 lines, -3 lines 0 comments Download
M components/sync_driver/non_ui_data_type_controller_unittest.cc View 1 5 chunks +7 lines, -9 lines 0 comments Download
M components/sync_driver/ui_data_type_controller.h View 1 chunk +2 lines, -2 lines 0 comments Download
M components/sync_driver/ui_data_type_controller.cc View 1 6 chunks +17 lines, -11 lines 0 comments Download
M components/sync_driver/ui_data_type_controller_unittest.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M sync/api/sync_error.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 23 (0 generated)
Nicolas Zea
+Haitoa, PTAL
6 years, 4 months ago (2014-07-28 20:19:10 UTC) #1
Nicolas Zea
ping?
6 years, 4 months ago (2014-07-30 17:32:36 UTC) #2
haitaol1
https://codereview.chromium.org/420633002/diff/60001/components/sync_driver/data_type_manager_impl.cc File components/sync_driver/data_type_manager_impl.cc (right): https://codereview.chromium.org/420633002/diff/60001/components/sync_driver/data_type_manager_impl.cc#newcode92 components/sync_driver/data_type_manager_impl.cc:92: !failed_data_types_handler_->GetUnreadyErrorTypes().Has( Is the end result same as before, i.e. ...
6 years, 4 months ago (2014-07-30 23:02:44 UTC) #3
Nicolas Zea
Comments addressed, PTAL https://codereview.chromium.org/420633002/diff/60001/components/sync_driver/data_type_manager_impl.cc File components/sync_driver/data_type_manager_impl.cc (right): https://codereview.chromium.org/420633002/diff/60001/components/sync_driver/data_type_manager_impl.cc#newcode92 components/sync_driver/data_type_manager_impl.cc:92: !failed_data_types_handler_->GetUnreadyErrorTypes().Has( On 2014/07/30 23:02:44, haitaol1 wrote: ...
6 years, 4 months ago (2014-07-30 23:20:36 UTC) #4
Nicolas Zea
PTAL, changed unrecoverable errors to track all types.
6 years, 4 months ago (2014-07-31 20:40:22 UTC) #5
haitaol1
https://codereview.chromium.org/420633002/diff/120001/components/sync_driver/data_type_manager_impl.cc File components/sync_driver/data_type_manager_impl.cc (right): https://codereview.chromium.org/420633002/diff/120001/components/sync_driver/data_type_manager_impl.cc#newcode358 components/sync_driver/data_type_manager_impl.cc:358: errors[failed_configuration_types.First().Get()] = error; shouldn't iter be used here? https://codereview.chromium.org/420633002/diff/120001/components/sync_driver/failed_data_types_handler.cc ...
6 years, 4 months ago (2014-07-31 20:51:24 UTC) #6
Nicolas Zea
https://codereview.chromium.org/420633002/diff/120001/components/sync_driver/data_type_manager_impl.cc File components/sync_driver/data_type_manager_impl.cc (right): https://codereview.chromium.org/420633002/diff/120001/components/sync_driver/data_type_manager_impl.cc#newcode358 components/sync_driver/data_type_manager_impl.cc:358: errors[failed_configuration_types.First().Get()] = error; On 2014/07/31 20:51:24, haitaol1 wrote: > ...
6 years, 4 months ago (2014-07-31 20:55:39 UTC) #7
haitaol1
lgtm
6 years, 4 months ago (2014-07-31 21:05:03 UTC) #8
Nicolas Zea
The CQ bit was checked by zea@chromium.org
6 years, 4 months ago (2014-07-31 21:06:01 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/420633002/160001
6 years, 4 months ago (2014-07-31 21:07:25 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-01 04:31:15 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-01 04:35:50 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/1917)
6 years, 4 months ago (2014-08-01 04:35:51 UTC) #13
Nicolas Zea
The CQ bit was checked by zea@chromium.org
6 years, 4 months ago (2014-08-04 20:31:13 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/420633002/180001
6 years, 4 months ago (2014-08-04 20:32:19 UTC) #15
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-04 21:45:16 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-04 21:50:33 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/2587) android_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg/builds/2965)
6 years, 4 months ago (2014-08-04 21:50:34 UTC) #18
haitaol1
Sorry for looping back. Have a couple more questions. https://codereview.chromium.org/420633002/diff/180001/components/sync_driver/model_association_manager.cc File components/sync_driver/model_association_manager.cc (right): https://codereview.chromium.org/420633002/diff/180001/components/sync_driver/model_association_manager.cc#newcode162 components/sync_driver/model_association_manager.cc:162: ...
6 years, 4 months ago (2014-08-08 17:28:25 UTC) #19
Nicolas Zea
https://codereview.chromium.org/420633002/diff/180001/components/sync_driver/model_association_manager.cc File components/sync_driver/model_association_manager.cc (right): https://codereview.chromium.org/420633002/diff/180001/components/sync_driver/model_association_manager.cc#newcode162 components/sync_driver/model_association_manager.cc:162: dtc->Stop(); On 2014/08/08 17:28:25, haitaol1 wrote: > Should the ...
6 years, 4 months ago (2014-08-08 17:35:34 UTC) #20
Nicolas Zea
The CQ bit was checked by zea@chromium.org
6 years, 4 months ago (2014-08-08 18:45:23 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/420633002/200001
6 years, 4 months ago (2014-08-08 18:47:24 UTC) #22
commit-bot: I haz the power
6 years, 4 months ago (2014-08-08 23:16:10 UTC) #23
Message was sent while issue was closed.
Change committed as 288464

Powered by Google App Engine
This is Rietveld 408576698