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

Unified Diff: chrome/browser/errorpage_browsertest.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (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: chrome/browser/errorpage_browsertest.cc
diff --git a/chrome/browser/errorpage_browsertest.cc b/chrome/browser/errorpage_browsertest.cc
index ee16bb881e072c3f77daf0ea8121f5d2c24da621..26db4691f13d70fb3c2c0609f8f0591d724c8193 100644
--- a/chrome/browser/errorpage_browsertest.cc
+++ b/chrome/browser/errorpage_browsertest.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/bind.h"
#include "base/command_line.h"
#include "base/compiler_specific.h"
@@ -179,8 +181,8 @@ void AddInterceptorForURL(
const GURL& url,
scoped_ptr<net::URLRequestInterceptor> handler) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
- net::URLRequestFilter::GetInstance()->AddUrlInterceptor(
- url, handler.Pass());
+ net::URLRequestFilter::GetInstance()->AddUrlInterceptor(url,
+ std::move(handler));
}
// An interceptor that fails a configurable number of requests, then succeeds
@@ -309,7 +311,7 @@ void InstallMockInterceptors(
chrome_browser_net::SetUrlRequestMocksEnabled(true);
AddInterceptorForURL(google_util::LinkDoctorBaseURL(),
- link_doctor_interceptor.Pass());
+ std::move(link_doctor_interceptor));
// Add a mock for the search engine the error page will use.
base::FilePath root_http;
@@ -541,7 +543,7 @@ void InterceptNetworkTransactions(net::URLRequestContextGetter* getter,
new net::FailingHttpTransactionFactory(cache->GetSession(), error));
// Throw away old version; since this is a a browser test, we don't
// need to restore the old state.
- cache->SetHttpNetworkTransactionFactoryForTesting(factory.Pass());
+ cache->SetHttpNetworkTransactionFactoryForTesting(std::move(factory));
}
// Test an error with a file URL, and make sure it doesn't have a

Powered by Google App Engine
This is Rietveld 408576698