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

Unified Diff: content/browser/loader/downloaded_temp_file_impl.cc

Issue 2715423003: [Mojo-Loading] Use independent URLLoaderClient (Closed)
Patch Set: fix Created 3 years, 10 months 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
Index: content/browser/loader/downloaded_temp_file_impl.cc
diff --git a/content/browser/loader/downloaded_temp_file_impl.cc b/content/browser/loader/downloaded_temp_file_impl.cc
index 027a32665c1d864629c928e54cfc509ecfbb1515..878e3e2eac1d7e9a55271d9e5240646c0504ff88 100644
--- a/content/browser/loader/downloaded_temp_file_impl.cc
+++ b/content/browser/loader/downloaded_temp_file_impl.cc
@@ -6,27 +6,13 @@
#include "base/memory/ptr_util.h"
#include "content/browser/loader/resource_dispatcher_host_impl.h"
-#include "mojo/public/cpp/bindings/strong_associated_binding.h"
#include "mojo/public/cpp/bindings/strong_binding.h"
namespace content {
// static
-mojom::DownloadedTempFileAssociatedPtrInfo DownloadedTempFileImpl::Create(
- int child_id,
- int request_id) {
- mojo::AssociatedInterfacePtrInfo<mojom::DownloadedTempFile> ptr_info;
- auto request = mojo::MakeRequest(&ptr_info);
- mojo::MakeStrongAssociatedBinding(
- base::MakeUnique<DownloadedTempFileImpl>(child_id, request_id),
- std::move(request));
- return ptr_info;
-}
-
-// static
-mojom::DownloadedTempFilePtr DownloadedTempFileImpl::CreateForTesting(
- int child_id,
- int request_id) {
+mojom::DownloadedTempFilePtr DownloadedTempFileImpl::Create(int child_id,
+ int request_id) {
mojo::InterfacePtr<mojom::DownloadedTempFile> ptr;
mojo::MakeStrongBinding(
base::MakeUnique<DownloadedTempFileImpl>(child_id, request_id),

Powered by Google App Engine
This is Rietveld 408576698