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

Unified Diff: content/browser/loader/navigation_url_loader.cc

Issue 1545243002: Convert Pass()→std::move() in //content/browser (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
Index: content/browser/loader/navigation_url_loader.cc
diff --git a/content/browser/loader/navigation_url_loader.cc b/content/browser/loader/navigation_url_loader.cc
index 0da9a2504c9bdca2badc472168d1298b4f6f309b..e2507650a8144b17649900846e09309d95255635 100644
--- a/content/browser/loader/navigation_url_loader.cc
+++ b/content/browser/loader/navigation_url_loader.cc
@@ -4,6 +4,8 @@
#include "content/browser/loader/navigation_url_loader.h"
+#include <utility>
+
#include "content/browser/frame_host/navigation_request_info.h"
#include "content/browser/loader/navigation_url_loader_factory.h"
#include "content/browser/loader/navigation_url_loader_impl.h"
@@ -18,11 +20,12 @@ scoped_ptr<NavigationURLLoader> NavigationURLLoader::Create(
ServiceWorkerNavigationHandle* service_worker_handle,
NavigationURLLoaderDelegate* delegate) {
if (g_factory) {
- return g_factory->CreateLoader(browser_context, request_info.Pass(),
+ return g_factory->CreateLoader(browser_context, std::move(request_info),
service_worker_handle, delegate);
}
- return scoped_ptr<NavigationURLLoader>(new NavigationURLLoaderImpl(
- browser_context, request_info.Pass(), service_worker_handle, delegate));
+ return scoped_ptr<NavigationURLLoader>(
+ new NavigationURLLoaderImpl(browser_context, std::move(request_info),
+ service_worker_handle, delegate));
}
void NavigationURLLoader::SetFactoryForTesting(
« no previous file with comments | « content/browser/loader/mime_type_resource_handler_unittest.cc ('k') | content/browser/loader/navigation_url_loader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698