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

Issue 162443004: sync: final pieces to sync deferred initialization (Closed)

Created:
6 years, 10 months ago by tim (not reviewing)
Modified:
6 years, 10 months ago
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, maniscalco+watch_chromium.org
Visibility:
Public.

Description

sync: final pieces to sync deferred initialization Refactors startup logic and state tracking into a new StartupController. Adds a fallback timer in the event no data type triggers initialization. I get the impression the various "IsSync{Enabled[AndLoggedIn],Accessible}" etc methods could be consolidated somewhat, but I'll leave that to a future CL. TBR=kalman@chromium.org, bauerb@chromium.org BUG=80194 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=253550

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : fix new MANUAL_START ref #

Patch Set 4 : fix test leak #

Total comments: 15

Patch Set 5 : review #

Total comments: 2

Patch Set 6 : rebase again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+694 lines, -233 lines) Patch
M chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/managed_mode/managed_user_signin_manager_wrapper.h View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 13 chunks +24 lines, -57 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 5 20 chunks +39 lines, -125 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_factory.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_mock.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service_password_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service_session_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_startup_unittest.cc View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_unittest.cc View 1 11 chunks +11 lines, -11 lines 0 comments Download
A chrome/browser/sync/startup_controller.h View 1 2 3 4 1 chunk +114 lines, -0 lines 0 comments Download
A chrome/browser/sync/startup_controller.cc View 1 2 3 4 1 chunk +208 lines, -0 lines 0 comments Download
A chrome/browser/sync/startup_controller_unittest.cc View 1 2 3 1 chunk +259 lines, -0 lines 0 comments Download
M chrome/browser/sync/test_profile_sync_service.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test_profile_sync_service.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_helper_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/sync_setup_handler.h View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/sync_setup_handler_unittest.cc View 2 3 4 5 8 chunks +13 lines, -17 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
tim (not reviewing)
6 years, 10 months ago (2014-02-18 18:19:34 UTC) #1
haitaol1
https://codereview.chromium.org/162443004/diff/920001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): https://codereview.chromium.org/162443004/diff/920001/chrome/browser/sync/profile_sync_service.cc#newcode195 chrome/browser/sync/profile_sync_service.cc:195: startup_controller_weak_factory_.GetWeakPtr())) { Why don't just use base::Unretained() if PSS ...
6 years, 10 months ago (2014-02-20 00:01:05 UTC) #2
tim (not reviewing)
https://codereview.chromium.org/162443004/diff/920001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): https://codereview.chromium.org/162443004/diff/920001/chrome/browser/sync/profile_sync_service.cc#newcode195 chrome/browser/sync/profile_sync_service.cc:195: startup_controller_weak_factory_.GetWeakPtr())) { On 2014/02/20 00:01:06, haitaol1 wrote: > Why ...
6 years, 10 months ago (2014-02-20 22:52:52 UTC) #3
tim (not reviewing)
On 2014/02/20 22:52:52, timsteele wrote: > https://codereview.chromium.org/162443004/diff/920001/chrome/browser/sync/profile_sync_service.cc > File chrome/browser/sync/profile_sync_service.cc (right): > > https://codereview.chromium.org/162443004/diff/920001/chrome/browser/sync/profile_sync_service.cc#newcode195 > ...
6 years, 10 months ago (2014-02-24 18:36:30 UTC) #4
haitaol1
https://codereview.chromium.org/162443004/diff/920001/chrome/browser/sync/startup_controller.cc File chrome/browser/sync/startup_controller.cc (right): https://codereview.chromium.org/162443004/diff/920001/chrome/browser/sync/startup_controller.cc#newcode73 chrome/browser/sync/startup_controller.cc:73: if (deferred_option == STARTUP_BACKEND_DEFERRED && fair enough On 2014/02/20 ...
6 years, 10 months ago (2014-02-25 00:53:00 UTC) #5
tim (not reviewing)
https://codereview.chromium.org/162443004/diff/920001/chrome/browser/sync/startup_controller.cc File chrome/browser/sync/startup_controller.cc (right): https://codereview.chromium.org/162443004/diff/920001/chrome/browser/sync/startup_controller.cc#newcode191 chrome/browser/sync/startup_controller.cc:191: UMA_HISTOGRAM_ENUMERATION("Sync.Startup.TypeTriggeringInit", On 2014/02/25 00:53:01, haitaol1 wrote: > I'm more ...
6 years, 10 months ago (2014-02-25 01:17:43 UTC) #6
haitaol1
lgtm
6 years, 10 months ago (2014-02-25 17:45:45 UTC) #7
tim (not reviewing)
kalman@chromium.org: TBR for extensions bauerb@chromium.org: TBR for managed_mode rogerta@chromium.org: Please review changes in c/b/ui/webui.
6 years, 10 months ago (2014-02-25 18:05:17 UTC) #8
Roger Tawa OOO till Jul 10th
lgtm c/b/ui/webui
6 years, 10 months ago (2014-02-25 21:44:49 UTC) #9
tim (not reviewing)
The CQ bit was checked by tim@chromium.org
6 years, 10 months ago (2014-02-25 22:54:47 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/162443004/1110002
6 years, 10 months ago (2014-02-25 22:58:22 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-25 22:58:28 UTC) #12
commit-bot: I haz the power
Failed to apply patch for chrome/browser/ui/webui/sync_setup_handler_unittest.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 10 months ago (2014-02-25 22:58:28 UTC) #13
tim (not reviewing)
The CQ bit was checked by tim@chromium.org
6 years, 10 months ago (2014-02-26 05:53:34 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/162443004/1260001
6 years, 10 months ago (2014-02-26 06:13:04 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-26 10:10:00 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel
6 years, 10 months ago (2014-02-26 10:10:01 UTC) #17
tim (not reviewing)
The CQ bit was checked by tim@chromium.org
6 years, 10 months ago (2014-02-26 17:28:58 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/162443004/1260001
6 years, 10 months ago (2014-02-26 17:29:28 UTC) #19
commit-bot: I haz the power
6 years, 10 months ago (2014-02-26 19:27:39 UTC) #20
Message was sent while issue was closed.
Change committed as 253550

Powered by Google App Engine
This is Rietveld 408576698