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

Unified Diff: content/common/throttling_url_loader.cc

Issue 2954853002: Use Independent URLLoader
Patch Set: . Created 3 years, 6 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
« no previous file with comments | « content/common/throttling_url_loader.h ('k') | content/common/throttling_url_loader_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/throttling_url_loader.cc
diff --git a/content/common/throttling_url_loader.cc b/content/common/throttling_url_loader.cc
index 8fed8709ff3491cfc6a45daaea6cc585cf6c5c4e..7f5d5fe1d7c1a1f52097926819726e230af60b01 100644
--- a/content/common/throttling_url_loader.cc
+++ b/content/common/throttling_url_loader.cc
@@ -165,16 +165,12 @@ void ThrottlingURLLoader::StartNow(
if (factory) {
DCHECK(!start_loader_callback);
- mojom::URLLoaderAssociatedPtr url_loader;
- auto url_loader_request = mojo::MakeRequest(&url_loader);
- url_loader_ = std::move(url_loader);
+ auto url_loader_request = mojo::MakeRequest(&url_loader_);
factory->CreateLoaderAndStart(std::move(url_loader_request), routing_id,
request_id, options, url_request,
std::move(client), traffic_annotation_);
} else {
- mojom::URLLoaderPtr url_loader;
- auto url_loader_request = mojo::MakeRequest(&url_loader);
- url_loader_ = std::move(url_loader);
+ auto url_loader_request = mojo::MakeRequest(&url_loader_);
std::move(start_loader_callback)
.Run(std::move(url_loader_request), std::move(client));
}
« no previous file with comments | « content/common/throttling_url_loader.h ('k') | content/common/throttling_url_loader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698