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

Issue 523043005: [Sync] Move DataTypeStatusTable ownership into DataTypeManager. (Closed)

Created:
6 years, 3 months ago by Nicolas Zea
Modified:
6 years, 3 months ago
Reviewers:
maniscalco
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, zea+watch_chromium.org, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@lkgr
Project:
chromium
Visibility:
Public.

Description

[Sync] Move DataTypeStatusTable ownership into DataTypeManager. The DataTypeManager now maintains its own status table, which it posts a copy of on each configuration completion. This makes testing configuration results easier as we can now just check the type status table, and makes the DTM more self contained. To make this work a HistoryDeleteDirectives datatype controller was added to encapsulate the encryption dependency the type has. Additionally, the PSS is now able to tell the DTM to reset type errors (e.g. when the user is attempting to re-configure with or without certain types). BUG=368834 Committed: https://crrev.com/fe2ae5fbf23243039bdc94f8f8672bc371f5339f Cr-Commit-Position: refs/heads/master@{#292962}

Patch Set 1 #

Patch Set 2 : Rebase and self review #

Total comments: 6

Patch Set 3 : Fix integration tests #

Patch Set 4 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+408 lines, -209 lines) Patch
A chrome/browser/sync/glue/history_delete_directives_data_type_controller.h View 1 1 chunk +44 lines, -0 lines 0 comments Download
A chrome/browser/sync/glue/history_delete_directives_data_type_controller.cc View 1 2 3 1 chunk +49 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl.cc View 1 5 chunks +9 lines, -11 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_mock.h View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 5 chunks +8 lines, -29 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_autofill_unittest.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_startup_unittest.cc View 1 9 chunks +11 lines, -13 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_typed_url_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/sync/test/integration/sync_errors_test.cc View 1 2 2 chunks +27 lines, -6 lines 0 comments Download
M chrome/browser/sync/test_profile_sync_service.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M components/sync_driver/data_type_manager.h View 3 chunks +5 lines, -0 lines 0 comments Download
M components/sync_driver/data_type_manager_impl.h View 1 2 3 3 chunks +3 lines, -4 lines 0 comments Download
M components/sync_driver/data_type_manager_impl.cc View 12 chunks +27 lines, -22 lines 0 comments Download
M components/sync_driver/data_type_manager_impl_unittest.cc View 44 chunks +206 lines, -105 lines 0 comments Download
M components/sync_driver/data_type_manager_mock.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/sync_driver/data_type_status_table.h View 1 chunk +1 line, -1 line 0 comments Download
M components/sync_driver/fake_data_type_controller.cc View 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
Nicolas Zea
PTAL
6 years, 3 months ago (2014-08-29 23:20:42 UTC) #2
maniscalco
Just a few questions... https://codereview.chromium.org/523043005/diff/60001/chrome/browser/sync/glue/history_delete_directives_data_type_controller.cc File chrome/browser/sync/glue/history_delete_directives_data_type_controller.cc (right): https://codereview.chromium.org/523043005/diff/60001/chrome/browser/sync/glue/history_delete_directives_data_type_controller.cc#newcode30 chrome/browser/sync/glue/history_delete_directives_data_type_controller.cc:30: if (sync_service_->HasObserver(this)) Just curious, are ...
6 years, 3 months ago (2014-08-29 23:50:36 UTC) #3
Nicolas Zea
PTAL https://codereview.chromium.org/523043005/diff/60001/chrome/browser/sync/glue/history_delete_directives_data_type_controller.cc File chrome/browser/sync/glue/history_delete_directives_data_type_controller.cc (right): https://codereview.chromium.org/523043005/diff/60001/chrome/browser/sync/glue/history_delete_directives_data_type_controller.cc#newcode30 chrome/browser/sync/glue/history_delete_directives_data_type_controller.cc:30: if (sync_service_->HasObserver(this)) On 2014/08/29 23:50:35, maniscalco wrote: > ...
6 years, 3 months ago (2014-08-29 23:56:22 UTC) #4
maniscalco
lgtm
6 years, 3 months ago (2014-09-02 16:15:50 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/523043005/100001
6 years, 3 months ago (2014-09-02 16:25:57 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_rel_swarming on tryserver.chromium.mac ...
6 years, 3 months ago (2014-09-02 17:23:32 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/9162)
6 years, 3 months ago (2014-09-02 17:52:20 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/523043005/100001
6 years, 3 months ago (2014-09-02 17:56:04 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:100001) as 44aead400e988dacb6f7146a378d764309b6367a
6 years, 3 months ago (2014-09-02 18:31:33 UTC) #13
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:19:35 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/fe2ae5fbf23243039bdc94f8f8672bc371f5339f
Cr-Commit-Position: refs/heads/master@{#292962}

Powered by Google App Engine
This is Rietveld 408576698