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

Issue 217183003: Add non-blocking sync code to ProfileSyncService (Closed)

Created:
6 years, 8 months ago by rlarocque
Modified:
6 years, 8 months ago
Reviewers:
Nicolas Zea
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, maniscalco+watch_chromium.org
Visibility:
Public.

Description

Add non-blocking sync code to ProfileSyncService Adds support for non-blocking sync to the ProfileSyncService and related classes. This continues the work of r258390 and r259921. Like those patches, it is not expected to have any impact on behavior. Introduces ProfileSyncService::RegisterNonBlockingType(). This function will act as an alternative to RegisterDataTypeController(). Adds some support for these non-blocking types. Adds a special case to the code that generates the 'type status' table on the about:sync page. Instantiates and copies a SyncCoreProxy object to the ProfileSyncService as backend initialization completes. This will be an important part of non-blocking data type initialization, once that functionality is supported. BUG=351005 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=261590

Patch Set 1 #

Total comments: 24

Patch Set 2 : Rebase #

Patch Set 3 : Some fixes #

Patch Set 4 : Remove NonBlocking type invalidations support #

Total comments: 1

Patch Set 5 : Add comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -15 lines) Patch
M chrome/browser/sync/glue/sync_backend_host.h View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_core.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_core.cc View 1 2 1 chunk +11 lines, -1 line 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_impl.h View 1 2 3 3 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_impl.cc View 1 2 3 3 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_mock.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_mock.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 2 3 chunks +21 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 11 chunks +48 lines, -4 lines 0 comments Download
M sync/internal_api/public/sync_manager.h View 1 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/public/test/fake_sync_manager.h View 1 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/sync_manager_impl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/sync_manager_impl.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M sync/internal_api/test/fake_sync_manager.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M sync/sessions/model_type_registry.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
rlarocque
Here's the next patch in the series. I think I manged to avoid rebase issues ...
6 years, 8 months ago (2014-03-28 18:10:14 UTC) #1
rlarocque
ping.
6 years, 8 months ago (2014-04-02 22:30:01 UTC) #2
Nicolas Zea
https://codereview.chromium.org/217183003/diff/1/chrome/browser/sync/glue/sync_backend_host_core.cc File chrome/browser/sync/glue/sync_backend_host_core.cc (right): https://codereview.chromium.org/217183003/diff/1/chrome/browser/sync/glue/sync_backend_host_core.cc#newcode488 chrome/browser/sync/glue/sync_backend_host_core.cc:488: sync_core.get(); I don't think this is necessary. A weak ...
6 years, 8 months ago (2014-04-02 23:19:05 UTC) #3
rlarocque
Patch updated. PTAL. https://codereview.chromium.org/217183003/diff/1/chrome/browser/sync/glue/sync_backend_host_core.cc File chrome/browser/sync/glue/sync_backend_host_core.cc (right): https://codereview.chromium.org/217183003/diff/1/chrome/browser/sync/glue/sync_backend_host_core.cc#newcode488 chrome/browser/sync/glue/sync_backend_host_core.cc:488: sync_core.get(); On 2014/04/02 23:19:05, Nicolas Zea ...
6 years, 8 months ago (2014-04-03 01:03:46 UTC) #4
Nicolas Zea
https://codereview.chromium.org/217183003/diff/1/chrome/browser/sync/glue/sync_backend_host_core.cc File chrome/browser/sync/glue/sync_backend_host_core.cc (right): https://codereview.chromium.org/217183003/diff/1/chrome/browser/sync/glue/sync_backend_host_core.cc#newcode488 chrome/browser/sync/glue/sync_backend_host_core.cc:488: sync_core.get(); On 2014/04/03 01:03:46, rlarocque wrote: > On 2014/04/02 ...
6 years, 8 months ago (2014-04-03 17:52:13 UTC) #5
rlarocque
https://codereview.chromium.org/217183003/diff/1/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): https://codereview.chromium.org/217183003/diff/1/chrome/browser/sync/profile_sync_service.cc#newcode949 chrome/browser/sync/profile_sync_service.cc:949: backend_->SetPreferredNonBlockingTypes(GetPreferredNonBlockingDataTypes()); On 2014/04/03 17:52:15, Nicolas Zea wrote: > On ...
6 years, 8 months ago (2014-04-03 19:57:02 UTC) #6
Nicolas Zea
On 2014/04/03 19:57:02, rlarocque wrote: > https://codereview.chromium.org/217183003/diff/1/chrome/browser/sync/profile_sync_service.cc > File chrome/browser/sync/profile_sync_service.cc (right): > > https://codereview.chromium.org/217183003/diff/1/chrome/browser/sync/profile_sync_service.cc#newcode949 > ...
6 years, 8 months ago (2014-04-03 20:11:58 UTC) #7
rlarocque
On 2014/04/03 20:11:58, Nicolas Zea wrote: > On 2014/04/03 19:57:02, rlarocque wrote: > > > ...
6 years, 8 months ago (2014-04-03 20:21:48 UTC) #8
rlarocque
I've reverted all of the invalidations-related parts. PTAL.
6 years, 8 months ago (2014-04-03 20:30:16 UTC) #9
Nicolas Zea
lgtm https://codereview.chromium.org/217183003/diff/60001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): https://codereview.chromium.org/217183003/diff/60001/chrome/browser/sync/profile_sync_service.cc#newcode1227 chrome/browser/sync/profile_sync_service.cc:1227: const syncer::ModelTypeSet types = GetPreferredDirectoryDataTypes(); It's unclear to ...
6 years, 8 months ago (2014-04-03 20:36:08 UTC) #10
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 8 months ago (2014-04-03 20:58:37 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/217183003/80001
6 years, 8 months ago (2014-04-03 21:00:14 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-03 22:15:50 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-04-03 22:15:51 UTC) #14
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 8 months ago (2014-04-03 22:26:09 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/217183003/80001
6 years, 8 months ago (2014-04-03 22:28:17 UTC) #16
commit-bot: I haz the power
6 years, 8 months ago (2014-04-04 00:06:17 UTC) #17
Message was sent while issue was closed.
Change committed as 261590

Powered by Google App Engine
This is Rietveld 408576698