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

Issue 14018026: sync: SyncableService support for starting sync (Closed)

Created:
7 years, 8 months ago by tim (not reviewing)
Modified:
7 years, 7 months ago
CC:
chromium-reviews, Raman Kakilate, akalin, estade+watch_chromium.org, benquan, Raghu Simha, ahutter, browser-components-watch_chromium.org, dbeam+watch-autofill_chromium.org, Dane Wallinga, dyu1, dhollowa+watch_chromium.org, Albert Bodenhamer, Ilya Sherman
Visibility:
Public.

Description

sync: SyncableService support for starting sync. Still has no actual effect as operational bits are behind the --sync-enable-deferred-startup flag. If you pass that flag, autofill will now be permitted to kick off sync init (in fact, it will be the only thing that can kick off sync init, so you probably don't want to pass the flag yet!). Next I'll add a fallback timer and plumb the flare to more datatypes; non Sync API types will have to call ProfileSyncService directly. TBR=dhollowa@chromium.org ^ For web_data_service_factory as changes are just basic consequence of the parameter change to AutocompleteSyncableService already LGTM'd. BUG=80194 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=198309

Patch Set 1 : #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : Address Haitao's comments #

Total comments: 13

Patch Set 5 : move InjectStartSyncFlare #

Total comments: 9

Patch Set 6 : more review #

Total comments: 3

Patch Set 7 : isherman's review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+187 lines, -19 lines) Patch
A chrome/browser/sync/glue/sync_start_util.h View 1 2 3 4 5 6 1 chunk +33 lines, -0 lines 0 comments Download
A chrome/browser/sync/glue/sync_start_util.cc View 1 2 3 4 5 1 chunk +51 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 3 chunks +14 lines, -4 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 5 6 3 chunks +51 lines, -10 lines 0 comments Download
M chrome/browser/webdata/autocomplete_syncable_service.h View 1 2 3 4 5 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/webdata/autocomplete_syncable_service.cc View 1 2 3 4 5 6 2 chunks +14 lines, -5 lines 0 comments Download
M chrome/browser/webdata/web_data_service_factory.cc View 1 2 3 4 5 6 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M sync/api/syncable_service.h View 1 2 3 4 5 2 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
tim (not reviewing)
Took a stab at allowing data type activity to kick off sync initialization, please take ...
7 years, 8 months ago (2013-04-18 17:14:35 UTC) #1
tim (not reviewing)
Actually, there are a few extra edge cases I should deal with here. Stand by...
7 years, 8 months ago (2013-04-19 18:22:45 UTC) #2
tim (not reviewing)
+Haitao for review Please take a look. Thanks.
7 years, 8 months ago (2013-04-24 17:31:08 UTC) #3
tim (not reviewing)
(hadn't uploaded proper patchset, please make sure you see latest).
7 years, 8 months ago (2013-04-24 17:47:44 UTC) #4
haitaol1
On 2013/04/24 17:47:44, timsteele wrote: > (hadn't uploaded proper patchset, please make sure you see ...
7 years, 8 months ago (2013-04-24 20:38:27 UTC) #5
tim (not reviewing)
On 2013/04/24 20:38:27, haitaol1 wrote: > On 2013/04/24 17:47:44, timsteele wrote: > > (hadn't uploaded ...
7 years, 8 months ago (2013-04-25 17:39:50 UTC) #6
haitaol1
https://codereview.chromium.org/14018026/diff/33001/chrome/browser/sync/glue/sync_start_util.h File chrome/browser/sync/glue/sync_start_util.h (right): https://codereview.chromium.org/14018026/diff/33001/chrome/browser/sync/glue/sync_start_util.h#newcode16 chrome/browser/sync/glue/sync_start_util.h:16: // ProfileSyncService it needs sync to start ASAP. Typically ...
7 years, 8 months ago (2013-04-25 19:18:18 UTC) #7
tim (not reviewing)
https://codereview.chromium.org/14018026/diff/33001/chrome/browser/sync/glue/sync_start_util.h File chrome/browser/sync/glue/sync_start_util.h (right): https://codereview.chromium.org/14018026/diff/33001/chrome/browser/sync/glue/sync_start_util.h#newcode16 chrome/browser/sync/glue/sync_start_util.h:16: // ProfileSyncService it needs sync to start ASAP. Typically ...
7 years, 7 months ago (2013-05-01 21:19:47 UTC) #8
Nicolas Zea
https://codereview.chromium.org/14018026/diff/40001/chrome/browser/sync/glue/sync_start_util.cc File chrome/browser/sync/glue/sync_start_util.cc (right): https://codereview.chromium.org/14018026/diff/40001/chrome/browser/sync/glue/sync_start_util.cc#newcode16 chrome/browser/sync/glue/sync_start_util.cc:16: void StartSyncOnUIThread(const base::FilePath& profile, have these two methods be ...
7 years, 7 months ago (2013-05-01 22:37:04 UTC) #9
tim (not reviewing)
https://codereview.chromium.org/14018026/diff/40001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): https://codereview.chromium.org/14018026/diff/40001/chrome/browser/sync/profile_sync_service.cc#newcode575 chrome/browser/sync/profile_sync_service.cc:575: data_type_requested_sync_startup_ = true; On 2013/05/01 22:37:04, Nicolas Zea wrote: ...
7 years, 7 months ago (2013-05-01 23:20:44 UTC) #10
Nicolas Zea
https://codereview.chromium.org/14018026/diff/40001/sync/api/syncable_service.h File sync/api/syncable_service.h (right): https://codereview.chromium.org/14018026/diff/40001/sync/api/syncable_service.h#newcode44 sync/api/syncable_service.h:44: virtual void InjectStartSyncFlare(const StartSyncFlare& flare); On 2013/05/01 23:20:44, timsteele ...
7 years, 7 months ago (2013-05-02 18:01:07 UTC) #11
tim (not reviewing)
Moved Inject out of the sync API interface. PTAL!
7 years, 7 months ago (2013-05-02 19:53:29 UTC) #12
Nicolas Zea
Btw, I think you didn't address the other comments I had? https://codereview.chromium.org/14018026/diff/48001/chrome/browser/sync/glue/sync_start_util.h File chrome/browser/sync/glue/sync_start_util.h (right): ...
7 years, 7 months ago (2013-05-02 20:18:12 UTC) #13
tim (not reviewing)
I addressed your comments. I don't know if you'll be a huge fan of the ...
7 years, 7 months ago (2013-05-03 00:20:51 UTC) #14
Nicolas Zea
LGTM
7 years, 7 months ago (2013-05-03 00:27:05 UTC) #15
tim (not reviewing)
+isherman for webdata/autocomplete*
7 years, 7 months ago (2013-05-03 00:50:47 UTC) #16
Ilya Sherman
LGTM, thanks. https://codereview.chromium.org/14018026/diff/55001/chrome/browser/sync/glue/sync_start_util.h File chrome/browser/sync/glue/sync_start_util.h (right): https://codereview.chromium.org/14018026/diff/55001/chrome/browser/sync/glue/sync_start_util.h#newcode30 chrome/browser/sync/glue/sync_start_util.h:30: }; nit: Please leave a blank line ...
7 years, 7 months ago (2013-05-03 00:59:58 UTC) #17
tim (not reviewing)
Thanks, addressed both comments. Also realized I need an OWNER for web_data_service_factory, so +dhollowa. https://codereview.chromium.org/14018026/diff/55001/chrome/browser/sync/glue/sync_start_util.h ...
7 years, 7 months ago (2013-05-03 01:14:34 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/14018026/60003
7 years, 7 months ago (2013-05-03 20:08:34 UTC) #19
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 7 months ago (2013-05-03 20:16:51 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/14018026/60003
7 years, 7 months ago (2013-05-03 20:28:18 UTC) #21
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 7 months ago (2013-05-03 21:15:57 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/14018026/60003
7 years, 7 months ago (2013-05-03 21:46:29 UTC) #23
commit-bot: I haz the power
7 years, 7 months ago (2013-05-04 13:56:43 UTC) #24
Message was sent while issue was closed.
Change committed as 198309

Powered by Google App Engine
This is Rietveld 408576698