Allow cross dependency between Browser{Context,State}KeyedServiceFactory
Until upstreaming is complete, iOS code must be able to have cross-dependency
between Browser{Context,State}KeyedServiceFactory. The only DependencyManager
used will be BrowserContextDependencyManager, so BCKSF don't need forking but
BSKSF context parameter may be a web::BrowserState when using the public API
or a content::BrowserContext when called by the DependencyManager. Introduce
a safe embedder specific way to convert the object back to a web::BrowserState.
BUG=419366
Review URL: https://codereview.chromium.org/740983003
Cr-Commit-Position: refs/heads/master@{#305208}
7 files changed