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

Issue 1858673002: [Sync] Inject startup dependencies into StartupController. (Closed)

Created:
4 years, 8 months ago by maxbogue
Modified:
4 years, 8 months ago
CC:
chromium-reviews, tim+watch_chromium.org, maxbogue+watch_chromium.org, plaree+watch_chromium.org, asvitkine+watch_chromium.org, zea+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Inject startup dependencies into StartupController. This forces StartupController to adhere to CanSyncStart instead of them coincidentally sharing conditions. It also removes external dependencies from StartupController and makes it cleaner to test. This change also removes the Sync.RefreshTokenAvailable histogram, which was no longer recorded as anything but true. BUG=600754 Committed: https://crrev.com/01eeca4d034210d0aa851531257e15208dda7a67 Cr-Commit-Position: refs/heads/master@{#385202}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -134 lines) Patch
M components/browser_sync/browser/profile_sync_service.h View 1 chunk +7 lines, -0 lines 0 comments Download
M components/browser_sync/browser/profile_sync_service.cc View 2 chunks +8 lines, -1 line 0 comments Download
M components/sync_driver/startup_controller.h View 1 3 chunks +5 lines, -9 lines 0 comments Download
M components/sync_driver/startup_controller.cc View 1 3 chunks +5 lines, -30 lines 0 comments Download
M components/sync_driver/startup_controller_unittest.cc View 1 12 chunks +27 lines, -94 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (7 generated)
maxbogue
Nicolas, PTAL. This is a cleanup CL I had left over from my StartupController simplification ...
4 years, 8 months ago (2016-04-04 18:22:59 UTC) #3
Alexei Svitkine (slow)
https://codereview.chromium.org/1858673002/diff/1/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (left): https://codereview.chromium.org/1858673002/diff/1/tools/metrics/histograms/histograms.xml#oldcode52212 tools/metrics/histograms/histograms.xml:52212: -<histogram name="Sync.RefreshTokenAvailable" enum="BooleanSuccess"> Mark this as <obsolete> instead - ...
4 years, 8 months ago (2016-04-04 19:10:06 UTC) #4
Nicolas Zea
LGTM https://codereview.chromium.org/1858673002/diff/1/components/sync_driver/startup_controller.cc File components/sync_driver/startup_controller.cc (right): https://codereview.chromium.org/1858673002/diff/1/components/sync_driver/startup_controller.cc#newcode117 components/sync_driver/startup_controller.cc:117: if (!can_start_.Run()) { consistency nit: remove braces https://codereview.chromium.org/1858673002/diff/1/components/sync_driver/startup_controller.h ...
4 years, 8 months ago (2016-04-04 20:44:17 UTC) #5
maxbogue
https://codereview.chromium.org/1858673002/diff/1/components/sync_driver/startup_controller.cc File components/sync_driver/startup_controller.cc (right): https://codereview.chromium.org/1858673002/diff/1/components/sync_driver/startup_controller.cc#newcode117 components/sync_driver/startup_controller.cc:117: if (!can_start_.Run()) { On 2016/04/04 20:44:17, Nicolas Zea wrote: ...
4 years, 8 months ago (2016-04-04 22:56:55 UTC) #6
Alexei Svitkine (slow)
lgtm for histograms.xml Probably worth having a BUG= for this since the change doesn't look ...
4 years, 8 months ago (2016-04-05 15:00:36 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1858673002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1858673002/20001
4 years, 8 months ago (2016-04-05 17:08:33 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-04-05 17:14:01 UTC) #13
commit-bot: I haz the power
4 years, 8 months ago (2016-04-05 17:15:24 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/01eeca4d034210d0aa851531257e15208dda7a67
Cr-Commit-Position: refs/heads/master@{#385202}

Powered by Google App Engine
This is Rietveld 408576698