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

Unified Diff: content/child/web_url_loader_impl.cc

Issue 2148363004: Use std::unique_ptr<> for WebTaskRunner::clone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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/child/resource_dispatcher.cc ('k') | content/renderer/renderer_blink_platform_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/web_url_loader_impl.cc
diff --git a/content/child/web_url_loader_impl.cc b/content/child/web_url_loader_impl.cc
index ec4bdc0f6b1fa0974092e30a64316fec96bb5610..918f69fc2a9dab5919d43a87fc2f837b6d003c14 100644
--- a/content/child/web_url_loader_impl.cc
+++ b/content/child/web_url_loader_impl.cc
@@ -550,7 +550,7 @@ void WebURLLoaderImpl::Context::Start(const WebURLRequest& request,
GetRequestContextFrameTypeForWebURLRequest(request);
request_info.extra_data = request.getExtraData();
request_info.report_raw_headers = request.reportRawHeaders();
- request_info.loading_web_task_runner.reset(web_task_runner_->clone());
+ request_info.loading_web_task_runner = web_task_runner_->clone();
request_info.lofi_state = static_cast<LoFiState>(request.getLoFiState());
scoped_refptr<ResourceRequestBodyImpl> request_body =
@@ -1187,7 +1187,7 @@ void WebURLLoaderImpl::setLoadingTaskRunner(
blink::WebTaskRunner* loading_task_runner) {
// There's no guarantee on the lifetime of |loading_task_runner| so we take a
// copy.
- context_->SetWebTaskRunner(base::WrapUnique(loading_task_runner->clone()));
+ context_->SetWebTaskRunner(loading_task_runner->clone());
}
// This function is implemented here because it uses net functions. it is
« no previous file with comments | « content/child/resource_dispatcher.cc ('k') | content/renderer/renderer_blink_platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698