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

Side by Side Diff: content/test/test_navigation_url_loader_factory.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/test/test_navigation_url_loader.cc ('k') | content/utility/utility_thread_impl.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/test/test_navigation_url_loader_factory.h" 5 #include "content/test/test_navigation_url_loader_factory.h"
6 6
7 #include <utility>
8
7 #include "content/browser/loader/navigation_url_loader.h" 9 #include "content/browser/loader/navigation_url_loader.h"
8 #include "content/test/test_navigation_url_loader.h" 10 #include "content/test/test_navigation_url_loader.h"
9 11
10 namespace content { 12 namespace content {
11 13
12 TestNavigationURLLoaderFactory::TestNavigationURLLoaderFactory() { 14 TestNavigationURLLoaderFactory::TestNavigationURLLoaderFactory() {
13 NavigationURLLoader::SetFactoryForTesting(this); 15 NavigationURLLoader::SetFactoryForTesting(this);
14 } 16 }
15 17
16 TestNavigationURLLoaderFactory::~TestNavigationURLLoaderFactory() { 18 TestNavigationURLLoaderFactory::~TestNavigationURLLoaderFactory() {
17 NavigationURLLoader::SetFactoryForTesting(NULL); 19 NavigationURLLoader::SetFactoryForTesting(NULL);
18 } 20 }
19 21
20 scoped_ptr<NavigationURLLoader> TestNavigationURLLoaderFactory::CreateLoader( 22 scoped_ptr<NavigationURLLoader> TestNavigationURLLoaderFactory::CreateLoader(
21 BrowserContext* browser_context, 23 BrowserContext* browser_context,
22 scoped_ptr<NavigationRequestInfo> request_info, 24 scoped_ptr<NavigationRequestInfo> request_info,
23 ServiceWorkerNavigationHandle* service_worker_handle, 25 ServiceWorkerNavigationHandle* service_worker_handle,
24 NavigationURLLoaderDelegate* delegate) { 26 NavigationURLLoaderDelegate* delegate) {
25 return scoped_ptr<NavigationURLLoader>(new TestNavigationURLLoader( 27 return scoped_ptr<NavigationURLLoader>(
26 request_info.Pass(), delegate)); 28 new TestNavigationURLLoader(std::move(request_info), delegate));
27 } 29 }
28 30
29 } // namespace content 31 } // namespace content
OLDNEW
« no previous file with comments | « content/test/test_navigation_url_loader.cc ('k') | content/utility/utility_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698