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

Unified Diff: content/child/resource_scheduling_filter.cc

Issue 1544293002: Convert Pass()→std::move() in //content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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_unittest.cc ('k') | content/child/scoped_web_callbacks.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/resource_scheduling_filter.cc
diff --git a/content/child/resource_scheduling_filter.cc b/content/child/resource_scheduling_filter.cc
index 0c086a4d7fe5a95796a70f12be1959afb65d5b7c..ba05fdc5a36284fe71179b78c5e648f31afbb75a 100644
--- a/content/child/resource_scheduling_filter.cc
+++ b/content/child/resource_scheduling_filter.cc
@@ -4,6 +4,8 @@
#include "content/child/resource_scheduling_filter.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/location.h"
#include "content/child/resource_dispatcher.h"
@@ -82,7 +84,7 @@ void ResourceSchedulingFilter::SetRequestIdTaskRunner(
int id, scoped_ptr<blink::WebTaskRunner> web_task_runner) {
base::AutoLock lock(request_id_to_task_runner_map_lock_);
request_id_to_task_runner_map_.insert(
- std::make_pair(id, web_task_runner.Pass()));
+ std::make_pair(id, std::move(web_task_runner)));
}
void ResourceSchedulingFilter::ClearRequestIdTaskRunner(int id) {
« no previous file with comments | « content/child/resource_dispatcher_unittest.cc ('k') | content/child/scoped_web_callbacks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698