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

Unified Diff: content/child/resource_dispatcher.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/request_extra_data.h ('k') | content/child/resource_dispatcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/resource_dispatcher.cc
diff --git a/content/child/resource_dispatcher.cc b/content/child/resource_dispatcher.cc
index d7734432cadc1b1b51783afa10dbeae1fe8247b0..1e6415108701ddfc38b6ecaeedfc5d1d21de7756 100644
--- a/content/child/resource_dispatcher.cc
+++ b/content/child/resource_dispatcher.cc
@@ -6,6 +6,8 @@
#include "content/child/resource_dispatcher.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/compiler_specific.h"
#include "base/debug/alias.h"
@@ -286,7 +288,7 @@ void ResourceDispatcher::OnReceivedData(int request_id,
factory->Create(data_offset, data_length, encoded_data_length);
// |data| takes care of ACKing.
send_ack = false;
- request_info->peer->OnReceivedData(data.Pass());
+ request_info->peer->OnReceivedData(std::move(data));
}
UMA_HISTOGRAM_TIMES("ResourceDispatcher.OnReceivedDataTime",
@@ -860,7 +862,7 @@ scoped_ptr<ResourceHostMsg_Request> ResourceDispatcher::CreateRequest(
request->request_body = request_body;
if (frame_origin)
*frame_origin = extra_data->frame_origin();
- return request.Pass();
+ return request;
}
void ResourceDispatcher::SetResourceSchedulingFilter(
« no previous file with comments | « content/child/request_extra_data.h ('k') | content/child/resource_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698