| Index: content/public/browser/provision_fetcher_impl.cc
|
| diff --git a/content/browser/media/android/provision_fetcher_impl.cc b/content/public/browser/provision_fetcher_impl.cc
|
| similarity index 73%
|
| rename from content/browser/media/android/provision_fetcher_impl.cc
|
| rename to content/public/browser/provision_fetcher_impl.cc
|
| index 79f0e3d41952776bfc7180a8525c54efc3c16792..636264044bd0163a82d29400f47a6f1074966d74 100644
|
| --- a/content/browser/media/android/provision_fetcher_impl.cc
|
| +++ b/content/public/browser/provision_fetcher_impl.cc
|
| @@ -2,13 +2,9 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "content/browser/media/android/provision_fetcher_impl.h"
|
| +#include "content/public/browser/provision_fetcher_impl.h"
|
|
|
| -#include "content/public/browser/android/provision_fetcher_factory.h"
|
| -#include "content/public/browser/browser_context.h"
|
| -#include "content/public/browser/render_frame_host.h"
|
| -#include "content/public/browser/render_process_host.h"
|
| -#include "content/public/browser/storage_partition.h"
|
| +#include "content/public/browser/provision_fetcher_factory.h"
|
| #include "mojo/public/cpp/bindings/strong_binding.h"
|
| #include "net/url_request/url_request_context_getter.h"
|
|
|
| @@ -16,12 +12,8 @@ namespace content {
|
|
|
| // static
|
| void ProvisionFetcherImpl::Create(
|
| - RenderFrameHost* render_frame_host,
|
| + net::URLRequestContextGetter* context_getter,
|
| media::mojom::ProvisionFetcherRequest request) {
|
| - net::URLRequestContextGetter* context_getter =
|
| - BrowserContext::GetDefaultStoragePartition(
|
| - render_frame_host->GetProcess()->GetBrowserContext())->
|
| - GetURLRequestContext();
|
| DCHECK(context_getter);
|
| mojo::MakeStrongBinding(base::MakeUnique<ProvisionFetcherImpl>(
|
| CreateProvisionFetcher(context_getter)),
|
|
|