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

Unified Diff: components/scheduler/child/web_task_runner_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 | « components/scheduler/child/web_task_runner_impl.h ('k') | content/child/resource_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/scheduler/child/web_task_runner_impl.cc
diff --git a/components/scheduler/child/web_task_runner_impl.cc b/components/scheduler/child/web_task_runner_impl.cc
index 269429c2399ed3f5cd62cdda90bdeab21f8ca79d..0b227800bf11cd022c9dfc2fda5c0d18afe40b93 100644
--- a/components/scheduler/child/web_task_runner_impl.cc
+++ b/components/scheduler/child/web_task_runner_impl.cc
@@ -60,8 +60,8 @@ base::TimeTicks WebTaskRunnerImpl::Now() const {
return time_domain->Now();
}
-blink::WebTaskRunner* WebTaskRunnerImpl::clone() {
- return new WebTaskRunnerImpl(task_queue_);
+std::unique_ptr<blink::WebTaskRunner> WebTaskRunnerImpl::clone() {
+ return base::WrapUnique(new WebTaskRunnerImpl(task_queue_));
}
void WebTaskRunnerImpl::runTask(
« no previous file with comments | « components/scheduler/child/web_task_runner_impl.h ('k') | content/child/resource_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698