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

Side by Side Diff: content/child/process_control_impl.cc

Issue 1544293002: Convert Pass()→std::move() in //content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 unified diff | Download patch
« no previous file with comments | « content/child/permissions/permission_dispatcher.cc ('k') | content/child/request_extra_data.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/child/process_control_impl.h" 5 #include "content/child/process_control_impl.h"
6 6
7 #include <utility>
8
7 #include "base/stl_util.h" 9 #include "base/stl_util.h"
8 #include "content/public/common/content_client.h" 10 #include "content/public/common/content_client.h"
9 #include "mojo/shell/static_application_loader.h" 11 #include "mojo/shell/static_application_loader.h"
10 #include "url/gurl.h" 12 #include "url/gurl.h"
11 13
12 namespace content { 14 namespace content {
13 15
14 ProcessControlImpl::ProcessControlImpl() { 16 ProcessControlImpl::ProcessControlImpl() {
15 } 17 }
16 18
(...skipping 14 matching lines...) Expand all
31 33
32 GURL application_url = GURL(url.To<std::string>()); 34 GURL application_url = GURL(url.To<std::string>());
33 auto it = url_to_loader_map_.find(application_url); 35 auto it = url_to_loader_map_.find(application_url);
34 if (it == url_to_loader_map_.end()) { 36 if (it == url_to_loader_map_.end()) {
35 callback.Run(false); 37 callback.Run(false);
36 OnLoadFailed(); 38 OnLoadFailed();
37 return; 39 return;
38 } 40 }
39 41
40 callback.Run(true); 42 callback.Run(true);
41 it->second->Load(application_url, request.Pass()); 43 it->second->Load(application_url, std::move(request));
42 } 44 }
43 45
44 } // namespace content 46 } // namespace content
OLDNEW
« no previous file with comments | « content/child/permissions/permission_dispatcher.cc ('k') | content/child/request_extra_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698