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

Unified Diff: chrome/browser/ssl/ssl_browser_tests.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/ssl/ssl_browser_tests.cc
diff --git a/chrome/browser/ssl/ssl_browser_tests.cc b/chrome/browser/ssl/ssl_browser_tests.cc
index 21078214f92178a3486bd4074d8f9601d4dfdfc8..3966bd400f7f5873178f0e69a66860c35699ac89 100644
--- a/chrome/browser/ssl/ssl_browser_tests.cc
+++ b/chrome/browser/ssl/ssl_browser_tests.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/base_switches.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
@@ -483,7 +485,8 @@ class SSLUITest
SSLBlockingPage* interstitial_page = static_cast<SSLBlockingPage*>(
tab->GetInterstitialPage()->GetDelegateForTesting());
ASSERT_TRUE(interstitial_page != nullptr);
- interstitial_page->SetSSLCertReporterForTesting(ssl_cert_reporter.Pass());
+ interstitial_page->SetSSLCertReporterForTesting(
+ std::move(ssl_cert_reporter));
EXPECT_EQ(std::string(), GetLatestHostnameReported());
@@ -544,7 +547,7 @@ class SSLUITest
interstitial_page->GetDelegateForTesting()->GetTypeForTesting());
BadClockBlockingPage* clock_page = static_cast<BadClockBlockingPage*>(
tab->GetInterstitialPage()->GetDelegateForTesting());
- clock_page->SetSSLCertReporterForTesting(ssl_cert_reporter.Pass());
+ clock_page->SetSSLCertReporterForTesting(std::move(ssl_cert_reporter));
EXPECT_EQ(std::string(), GetLatestHostnameReported());

Powered by Google App Engine
This is Rietveld 408576698