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

Unified Diff: content/browser/loader/navigation_url_loader_unittest.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_unittest.cc
diff --git a/content/browser/loader/navigation_url_loader_unittest.cc b/content/browser/loader/navigation_url_loader_unittest.cc
index 418046ef46002ccd4b430d474166a9f84563cf3a..b9302f8f7799055850151c5c800a4914d2bb221d 100644
--- a/content/browser/loader/navigation_url_loader_unittest.cc
+++ b/content/browser/loader/navigation_url_loader_unittest.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <utility>
+
#include "base/command_line.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
@@ -109,7 +111,7 @@ class TestNavigationURLLoaderDelegate : public NavigationURLLoaderDelegate {
void OnResponseStarted(const scoped_refptr<ResourceResponse>& response,
scoped_ptr<StreamHandle> body) override {
response_ = response;
- body_ = body.Pass();
+ body_ = std::move(body);
ASSERT_TRUE(response_started_);
response_started_->Quit();
}
@@ -187,8 +189,8 @@ class NavigationURLLoaderTest : public testing::Test {
new NavigationRequestInfo(common_params, begin_params, url, true, false,
-1, scoped_refptr<ResourceRequestBody>()));
- return NavigationURLLoader::Create(browser_context_.get(),
- request_info.Pass(), nullptr, delegate);
+ return NavigationURLLoader::Create(
+ browser_context_.get(), std::move(request_info), nullptr, delegate);
}
// Helper function for fetching the body of a URL to a string.
« no previous file with comments | « content/browser/loader/navigation_url_loader_impl.cc ('k') | content/browser/loader/redirect_to_file_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698