Chromium Code Reviews
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. #Messages
Total messages: 18 (7 generated)
|