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

Issue 11958029: [Sync] Add support for proxy types (Closed)

Created:
7 years, 11 months ago by Nicolas Zea
Modified:
7 years, 10 months ago
CC:
chromium-reviews, Raghu Simha, haitaol1, akalin
Visibility:
Public.

Description

[Sync] Add support for proxy types Proxy types are those that have no sync representation, and are used as placeholder to implicitly enable other types. They are never communicated to the server, and have no presence in the local sync directory. BUG=170162, 139726 TBR=jam@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=181534

Patch Set 1 #

Patch Set 2 : Don't purge local types either #

Patch Set 3 : Lint #

Patch Set 4 : Fix tests #

Patch Set 5 : Fix more tests #

Total comments: 6

Patch Set 6 : Address comments and rename local -> virtual #

Total comments: 1

Patch Set 7 : Don't send virtual types to server #

Patch Set 8 : Cleanup #

Total comments: 4

Patch Set 9 : Address comments + add ProtocolTypes() #

Total comments: 2

Patch Set 10 : Switch to ProxyTypes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+232 lines, -50 lines) Patch
M chrome/browser/sync/glue/model_association_manager.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
A chrome/browser/sync/glue/proxy_data_type_controller.h View 1 2 3 4 5 6 7 8 9 1 chunk +54 lines, -0 lines 0 comments Download
A chrome/browser/sync/glue/proxy_data_type_controller.cc View 1 2 3 4 5 6 7 8 9 1 chunk +66 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/sync/sync_prefs.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/sync/test/integration/migration_errors_test.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M sync/engine/build_commit_command.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M sync/engine/download_updates_command.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M sync/engine/store_timestamps_command_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/debug_info_event_listener.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M sync/internal_api/public/base/model_type.h View 1 2 3 4 5 6 7 8 9 2 chunks +10 lines, -0 lines 0 comments Download
M sync/internal_api/sync_encryption_handler_impl_unittest.cc View 1 2 3 4 5 2 chunks +1 line, -3 lines 0 comments Download
M sync/internal_api/sync_manager_impl_unittest.cc View 1 2 3 4 5 6 7 8 6 chunks +9 lines, -18 lines 0 comments Download
M sync/syncable/directory.cc View 1 2 3 4 5 6 7 8 9 3 chunks +9 lines, -5 lines 0 comments Download
M sync/syncable/directory_backing_store.cc View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -4 lines 0 comments Download
M sync/syncable/directory_backing_store_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -3 lines 0 comments Download
M sync/syncable/model_type.cc View 1 2 3 4 5 6 7 8 9 7 chunks +39 lines, -5 lines 0 comments Download
M sync/syncable/model_type_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -4 lines 0 comments Download
M sync/syncable/syncable_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -2 lines 0 comments Download
M sync/test/engine/mock_connection_manager.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Nicolas Zea
This implements my design for local types. https://codereview.chromium.org/11961030/ introduces TABS as a local type.
7 years, 11 months ago (2013-01-17 02:26:08 UTC) #1
tim (not reviewing)
https://codereview.chromium.org/11958029/diff/13001/chrome/browser/sync/glue/sync_backend_host.cc File chrome/browser/sync/glue/sync_backend_host.cc (right): https://codereview.chromium.org/11958029/diff/13001/chrome/browser/sync/glue/sync_backend_host.cc#newcode686 chrome/browser/sync/glue/sync_backend_host.cc:686: types_to_download.RemoveAll(syncer::LocalTypes()); It looks like most of this CL is ...
7 years, 11 months ago (2013-01-18 20:56:33 UTC) #2
Nicolas Zea
PTAL https://codereview.chromium.org/11958029/diff/13001/chrome/browser/sync/glue/sync_backend_host.cc File chrome/browser/sync/glue/sync_backend_host.cc (right): https://codereview.chromium.org/11958029/diff/13001/chrome/browser/sync/glue/sync_backend_host.cc#newcode686 chrome/browser/sync/glue/sync_backend_host.cc:686: types_to_download.RemoveAll(syncer::LocalTypes()); On 2013/01/18 20:56:33, timsteele wrote: > It ...
7 years, 11 months ago (2013-01-19 00:03:13 UTC) #3
Nicolas Zea
This is once again ready for review. Based on Raz's feedback, we now ensure no ...
7 years, 10 months ago (2013-01-30 23:59:20 UTC) #4
Nicolas Zea
ping?
7 years, 10 months ago (2013-02-01 18:45:14 UTC) #5
tim (not reviewing)
On 2013/02/01 18:45:14, Nicolas Zea wrote: > ping? The patch that stops sending virtual type ...
7 years, 10 months ago (2013-02-04 19:23:56 UTC) #6
tim (not reviewing)
Our in-person chat revealed the preferable option of creating a separate EnumSet, so that real ...
7 years, 10 months ago (2013-02-05 02:41:58 UTC) #7
Nicolas Zea
PTAL https://codereview.chromium.org/11958029/diff/29001/sync/internal_api/sync_manager_impl_unittest.cc File sync/internal_api/sync_manager_impl_unittest.cc (right): https://codereview.chromium.org/11958029/diff/29001/sync/internal_api/sync_manager_impl_unittest.cc#newcode2873 sync/internal_api/sync_manager_impl_unittest.cc:2873: for (ModelTypeSet::Iterator iter = ModelTypeSet::All().First(); iter.Good(); On 2013/02/05 ...
7 years, 10 months ago (2013-02-07 01:18:48 UTC) #8
tim (not reviewing)
LGTM ++, but read comment :) https://codereview.chromium.org/11958029/diff/42001/sync/internal_api/public/base/model_type.h File sync/internal_api/public/base/model_type.h (right): https://codereview.chromium.org/11958029/diff/42001/sync/internal_api/public/base/model_type.h#newcode158 sync/internal_api/public/base/model_type.h:158: // Virtual types ...
7 years, 10 months ago (2013-02-07 18:16:43 UTC) #9
Nicolas Zea
Went ahead and switched to ProxyTypes. Committing. https://codereview.chromium.org/11958029/diff/42001/sync/internal_api/public/base/model_type.h File sync/internal_api/public/base/model_type.h (right): https://codereview.chromium.org/11958029/diff/42001/sync/internal_api/public/base/model_type.h#newcode158 sync/internal_api/public/base/model_type.h:158: // Virtual ...
7 years, 10 months ago (2013-02-07 21:41:34 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/11958029/52003
7 years, 10 months ago (2013-02-07 21:55:29 UTC) #11
commit-bot: I haz the power
Presubmit check for 11958029-52003 failed and returned exit status 1. INFO:root:Found 21 file(s). Running presubmit ...
7 years, 10 months ago (2013-02-07 21:55:38 UTC) #12
Nicolas Zea
TBR'ing jam chrome_browser.gypi ownership
7 years, 10 months ago (2013-02-07 22:40:48 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/11958029/52003
7 years, 10 months ago (2013-02-07 22:41:39 UTC) #14
jam
On 2013/02/07 22:40:48, Nicolas Zea wrote: > TBR'ing jam chrome_browser.gypi ownership lgtm. in the future ...
7 years, 10 months ago (2013-02-08 01:03:21 UTC) #15
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=97533
7 years, 10 months ago (2013-02-08 01:20:28 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/11958029/52003
7 years, 10 months ago (2013-02-08 19:02:09 UTC) #17
commit-bot: I haz the power
7 years, 10 months ago (2013-02-08 19:36:43 UTC) #18
Message was sent while issue was closed.
Change committed as 181534

Powered by Google App Engine
This is Rietveld 408576698