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

Issue 2159453002: [Sync] Don't start up sync when FirstSetupCompleted is false and no setup in progress (Closed)

Created:
4 years, 5 months ago by Nicolas Zea
Modified:
4 years, 5 months ago
Reviewers:
maxbogue
CC:
chromium-reviews, sync-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Don't start up sync when FirstSetupCompleted is false and no setup in progress Instead of starting up the backend, we now don't even start it up if the first setup completed flag is false, unless a setup is in progress. On auto start platforms, first setup completed is manually set to true as part of init. BUG=624915 Committed: https://crrev.com/d1de1f77e44072018f41b1f54ffca27a7069edb4 Cr-Commit-Position: refs/heads/master@{#405950}

Patch Set 1 #

Patch Set 2 : Self review #

Patch Set 3 : Fix auto start scenario #

Patch Set 4 : Self review #

Total comments: 6

Patch Set 5 : Address comments and fix tests #

Patch Set 6 : Self review #

Total comments: 2

Patch Set 7 : Bring back android fix #

Patch Set 8 : Address comment #

Patch Set 9 : Android fix attempt #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -26 lines) Patch
M components/browser_sync/browser/profile_sync_service.cc View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -2 lines 0 comments Download
M components/browser_sync/browser/profile_sync_service_startup_unittest.cc View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M components/browser_sync/browser/profile_sync_service_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M components/sync_driver/startup_controller.h View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M components/sync_driver/startup_controller.cc View 1 2 3 4 5 3 chunks +17 lines, -6 lines 0 comments Download
M components/sync_driver/startup_controller_unittest.cc View 1 2 3 4 5 6 7 2 chunks +6 lines, -12 lines 0 comments Download

Messages

Total messages: 45 (30 generated)
Nicolas Zea
PTAL
4 years, 5 months ago (2016-07-15 19:26:43 UTC) #4
Nicolas Zea
PTAL again, android/test issues should be fixed.
4 years, 5 months ago (2016-07-15 21:25:11 UTC) #9
maxbogue
Mostly lg, just a few little comments. https://codereview.chromium.org/2159453002/diff/10005/components/browser_sync/browser/profile_sync_service_startup_unittest.cc File components/browser_sync/browser/profile_sync_service_startup_unittest.cc (left): https://codereview.chromium.org/2159453002/diff/10005/components/browser_sync/browser/profile_sync_service_startup_unittest.cc#oldcode439 components/browser_sync/browser/profile_sync_service_startup_unittest.cc:439: EXPECT_TRUE(sync_service_->IsBackendInitialized()); Leave ...
4 years, 5 months ago (2016-07-15 21:44:48 UTC) #10
Nicolas Zea
PTAL. Note that I had to make a slight change to the logic, so that ...
4 years, 5 months ago (2016-07-15 22:42:22 UTC) #16
maxbogue
lgtm with one nit! https://codereview.chromium.org/2159453002/diff/110001/components/sync_driver/startup_controller_unittest.cc File components/sync_driver/startup_controller_unittest.cc (right): https://codereview.chromium.org/2159453002/diff/110001/components/sync_driver/startup_controller_unittest.cc#newcode194 components/sync_driver/startup_controller_unittest.cc:194: sync_prefs()->SetFirstSetupComplete(); Remove this line. The ...
4 years, 5 months ago (2016-07-15 23:45:15 UTC) #21
Nicolas Zea
https://codereview.chromium.org/2159453002/diff/110001/components/sync_driver/startup_controller_unittest.cc File components/sync_driver/startup_controller_unittest.cc (right): https://codereview.chromium.org/2159453002/diff/110001/components/sync_driver/startup_controller_unittest.cc#newcode194 components/sync_driver/startup_controller_unittest.cc:194: sync_prefs()->SetFirstSetupComplete(); On 2016/07/15 23:45:15, maxbogue wrote: > Remove this ...
4 years, 5 months ago (2016-07-15 23:49:11 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2159453002/140001
4 years, 5 months ago (2016-07-15 23:49:33 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/105184)
4 years, 5 months ago (2016-07-16 00:51:18 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2159453002/140001
4 years, 5 months ago (2016-07-16 01:43:42 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/105226)
4 years, 5 months ago (2016-07-16 02:41:06 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2159453002/140001
4 years, 5 months ago (2016-07-16 08:14:23 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/105271)
4 years, 5 months ago (2016-07-16 09:12:03 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2159453002/160001
4 years, 5 months ago (2016-07-16 21:51:55 UTC) #42
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 5 months ago (2016-07-16 21:56:03 UTC) #43
commit-bot: I haz the power
4 years, 5 months ago (2016-07-16 21:57:22 UTC) #45
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/d1de1f77e44072018f41b1f54ffca27a7069edb4
Cr-Commit-Position: refs/heads/master@{#405950}

Powered by Google App Engine
This is Rietveld 408576698