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

Unified Diff: content/public/browser/provision_fetcher_impl.cc

Issue 2469863010: Move all ProvisionFetcher classes out of android/ subdirectories. (Closed)
Patch Set: Another NON_EXPORTED_BASE. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/browser/provision_fetcher_impl.h ('k') | media/base/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)),
« no previous file with comments | « content/public/browser/provision_fetcher_impl.h ('k') | media/base/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698