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

Issue 1410013008: [Sync] Remove some http-related chrome deps from SyncBackendHostImpl. (Closed)

Created:
5 years, 1 month ago by maxbogue
Modified:
5 years, 1 month ago
Reviewers:
Nicolas Zea, sky
CC:
chromium-reviews, tim+watch_chromium.org, pvalenzuela+watch_chromium.org, maxbogue+watch_chromium.org, plaree+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] Remove some http-related chrome deps from SyncBackendHostImpl. Previously on ::Initialize, SBHI would get passed a NetworkResources object, and use that combined with profile_->GetRequestContext(), UpdateNetworkTime, and the Core's CancelationSignal to create an HttpPostProviderFactory. Uses of Profile need to go away, and UpdateNetworkTime depends on chrome/browser/browser_process.h, so this change introduces the HttpPostProviderFactoryGetter callback typedef to SBH, which just takes a CancelationSignal and returns the HttpPostProviderFactory. The HttpPostProviderFactoryGetter replaces NetworkResources in the Initialize argument list. BUG=512056 TBR=sky Committed: https://crrev.com/d2ea9249e1b8b76a73a6af3d50db9b523926f671 Cr-Commit-Position: refs/heads/master@{#356725}

Patch Set 1 #

Patch Set 2 : Remove unnecessary includes/forward decls. #

Total comments: 4

Patch Set 3 : Address comments. #

Patch Set 4 : Try fixing mac bots. #

Total comments: 10

Patch Set 5 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -85 lines) Patch
M chrome/browser/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.h View 1 2 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_impl.h View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_impl.cc View 1 2 5 chunks +2 lines, -30 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_impl_unittest.cc View 1 2 4 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_mock.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_mock.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc View 1 2 3 chunks +9 lines, -8 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 2 3 4 3 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 4 chunks +26 lines, -19 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_factory.cc View 1 2 4 chunks +28 lines, -3 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_mock.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service_startup_unittest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service_unittest.cc View 1 2 5 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/sync/profile_sync_test_util.h View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_test_util.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/sync/test_profile_sync_service.cc View 1 2 2 chunks +9 lines, -8 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (7 generated)
maxbogue
Hey Nicolas, here's the partially-applied-function change I mentioned yesterday. PTAL!
5 years, 1 month ago (2015-10-27 16:49:32 UTC) #2
Nicolas Zea
https://codereview.chromium.org/1410013008/diff/20001/chrome/browser/sync/glue/sync_backend_host.h File chrome/browser/sync/glue/sync_backend_host.h (right): https://codereview.chromium.org/1410013008/diff/20001/chrome/browser/sync/glue/sync_backend_host.h#newcode78 chrome/browser/sync/glue/sync_backend_host.h:78: const HttpPostProviderFactoryGetter& get_http_post_provider_factory, nit: prefer calling this http_post_provider_factory_getter (we ...
5 years, 1 month ago (2015-10-27 20:41:42 UTC) #3
maxbogue
Moved the time update function to PSSFactory, PTAL! https://codereview.chromium.org/1410013008/diff/20001/chrome/browser/sync/glue/sync_backend_host.h File chrome/browser/sync/glue/sync_backend_host.h (right): https://codereview.chromium.org/1410013008/diff/20001/chrome/browser/sync/glue/sync_backend_host.h#newcode78 chrome/browser/sync/glue/sync_backend_host.h:78: const ...
5 years, 1 month ago (2015-10-27 23:53:08 UTC) #4
Nicolas Zea
LGTM! https://codereview.chromium.org/1410013008/diff/60001/chrome/browser/BUILD.gn File chrome/browser/BUILD.gn (right): https://codereview.chromium.org/1410013008/diff/60001/chrome/browser/BUILD.gn#newcode1044 chrome/browser/BUILD.gn:1044: "sync/profile_sync_test_util.h", Does this imply we weren't actually using ...
5 years, 1 month ago (2015-10-28 20:33:18 UTC) #5
maxbogue
https://codereview.chromium.org/1410013008/diff/60001/chrome/browser/BUILD.gn File chrome/browser/BUILD.gn (right): https://codereview.chromium.org/1410013008/diff/60001/chrome/browser/BUILD.gn#newcode1044 chrome/browser/BUILD.gn:1044: "sync/profile_sync_test_util.h", On 2015/10/28 20:33:18, Nicolas Zea wrote: > Does ...
5 years, 1 month ago (2015-10-28 23:19:11 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1410013008/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1410013008/80001
5 years, 1 month ago (2015-10-28 23:20:41 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/113659)
5 years, 1 month ago (2015-10-28 23:31:23 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1410013008/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1410013008/80001
5 years, 1 month ago (2015-10-28 23:43:42 UTC) #15
maxbogue
TBR'ing sky for: chrome/browser/BUILD.gn chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc
5 years, 1 month ago (2015-10-29 00:23:27 UTC) #16
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 1 month ago (2015-10-29 01:24:59 UTC) #17
commit-bot: I haz the power
5 years, 1 month ago (2015-10-29 01:25:39 UTC) #18
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/d2ea9249e1b8b76a73a6af3d50db9b523926f671
Cr-Commit-Position: refs/heads/master@{#356725}

Powered by Google App Engine
This is Rietveld 408576698