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

Issue 1575153004: [Sync] Simplify sync startup behavior. (Closed)

Created:
4 years, 11 months ago by maxbogue
Modified:
4 years, 9 months ago
Reviewers:
Nicolas Zea
CC:
chromium-reviews, tim+watch_chromium.org, zea+watch_chromium.org, maxbogue+watch_chromium.org, pvalenzuela+watch_chromium.org, plaree+watch_chromium.org, sdefresne+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@setup
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Simplify sync startup behavior. Now IsFirstSetupComplete, IsSetupInProgress, and AUTO_START do not directly factor into the sync startup logic. Instead, AUTO_START simply sets IsFirstSetupComplete to true on signin, and sync datatypes can only be configured if IsFirstSetupComplete && !IsSetupInProgress (aka the new CanConfigureDataTypes helper function). This change is motivated by wanting to have better understanding and control over when and how sync starts up in order to fix the attached bug. BUG=462796 Committed: https://crrev.com/76b6100f27b728e8235746b14e4a8c784eae4549 Cr-Commit-Position: refs/heads/master@{#380685}

Patch Set 1 #

Patch Set 2 : Fix PSS unittests. #

Patch Set 3 : Split out StartBehavior move. #

Patch Set 4 : Fix startup tests. #

Patch Set 5 : Rebase. #

Patch Set 6 : Fix a test. #

Patch Set 7 : Remove timeout reduction. #

Patch Set 8 : Better comment + tests. #

Total comments: 20

Patch Set 9 : Address comments. #

Patch Set 10 : Address more comments. #

Total comments: 12

Patch Set 11 : Address comments, fix tests, etc. #

Patch Set 12 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -165 lines) Patch
M chrome/browser/sync/test/integration/sync_test.cc View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -3 lines 0 comments Download
M components/browser_sync/browser/profile_sync_service.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -11 lines 0 comments Download
M components/browser_sync/browser/profile_sync_service.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +18 lines, -27 lines 0 comments Download
M components/browser_sync/browser/profile_sync_service_startup_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +13 lines, -6 lines 0 comments Download
M components/browser_sync/browser/profile_sync_service_unittest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +16 lines, -18 lines 0 comments Download
M components/sync_driver/startup_controller.h View 1 2 3 4 5 6 7 8 9 4 chunks +1 line, -12 lines 0 comments Download
M components/sync_driver/startup_controller.cc View 1 2 3 4 5 6 7 8 9 3 chunks +9 lines, -29 lines 0 comments Download
M components/sync_driver/startup_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 9 chunks +55 lines, -59 lines 0 comments Download

Messages

Total messages: 21 (8 generated)
maxbogue
Nicolas, PTAL. I'm still trying to figure out whether the bot failures are actually caused ...
4 years, 10 months ago (2016-02-25 18:59:14 UTC) #2
Nicolas Zea
Do you expect this change to modify any behavior, or should it be entirely refactoring? ...
4 years, 9 months ago (2016-02-29 21:21:56 UTC) #3
maxbogue
PTAL! https://codereview.chromium.org/1575153004/diff/140001/components/browser_sync/browser/profile_sync_service.cc File components/browser_sync/browser/profile_sync_service.cc (right): https://codereview.chromium.org/1575153004/diff/140001/components/browser_sync/browser/profile_sync_service.cc#newcode941 components/browser_sync/browser/profile_sync_service.cc:941: SetFirstSetupComplete(); On 2016/02/29 21:21:55, Nicolas Zea wrote: > ...
4 years, 9 months ago (2016-03-09 02:00:59 UTC) #4
Nicolas Zea
https://codereview.chromium.org/1575153004/diff/140001/components/browser_sync/browser/profile_sync_service.cc File components/browser_sync/browser/profile_sync_service.cc (right): https://codereview.chromium.org/1575153004/diff/140001/components/browser_sync/browser/profile_sync_service.cc#newcode941 components/browser_sync/browser/profile_sync_service.cc:941: SetFirstSetupComplete(); On 2016/03/09 02:00:59, maxbogue wrote: > On 2016/02/29 ...
4 years, 9 months ago (2016-03-09 19:49:45 UTC) #5
maxbogue
PTAL! I'll be keeping an eye on the bots because the StartupController change may have ...
4 years, 9 months ago (2016-03-10 18:48:15 UTC) #6
Nicolas Zea
https://codereview.chromium.org/1575153004/diff/180001/components/browser_sync/browser/profile_sync_service.cc File components/browser_sync/browser/profile_sync_service.cc (left): https://codereview.chromium.org/1575153004/diff/180001/components/browser_sync/browser/profile_sync_service.cc#oldcode948 components/browser_sync/browser/profile_sync_service.cc:948: DCHECK(IsFirstSetupInProgress()); Should we keep this DCHECK? https://codereview.chromium.org/1575153004/diff/180001/components/browser_sync/browser/profile_sync_service.cc File components/browser_sync/browser/profile_sync_service.cc ...
4 years, 9 months ago (2016-03-10 21:21:39 UTC) #7
maxbogue
https://codereview.chromium.org/1575153004/diff/180001/components/browser_sync/browser/profile_sync_service.cc File components/browser_sync/browser/profile_sync_service.cc (left): https://codereview.chromium.org/1575153004/diff/180001/components/browser_sync/browser/profile_sync_service.cc#oldcode948 components/browser_sync/browser/profile_sync_service.cc:948: DCHECK(IsFirstSetupInProgress()); On 2016/03/10 21:21:39, Nicolas Zea wrote: > Should ...
4 years, 9 months ago (2016-03-11 00:35:34 UTC) #8
Nicolas Zea
LGTM! https://codereview.chromium.org/1575153004/diff/180001/components/browser_sync/browser/profile_sync_service.cc File components/browser_sync/browser/profile_sync_service.cc (left): https://codereview.chromium.org/1575153004/diff/180001/components/browser_sync/browser/profile_sync_service.cc#oldcode948 components/browser_sync/browser/profile_sync_service.cc:948: DCHECK(IsFirstSetupInProgress()); On 2016/03/11 00:35:34, maxbogue wrote: > On ...
4 years, 9 months ago (2016-03-11 00:47:53 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1575153004/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1575153004/200001
4 years, 9 months ago (2016-03-11 01:20:05 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/179936)
4 years, 9 months ago (2016-03-11 02:02:15 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1575153004/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1575153004/220001
4 years, 9 months ago (2016-03-11 18:00:26 UTC) #17
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 9 months ago (2016-03-11 18:47:21 UTC) #19
commit-bot: I haz the power
4 years, 9 months ago (2016-03-11 18:48:35 UTC) #21
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/76b6100f27b728e8235746b14e4a8c784eae4549
Cr-Commit-Position: refs/heads/master@{#380685}

Powered by Google App Engine
This is Rietveld 408576698