Index: chrome/browser/ssl/cert_report_helper.cc |
diff --git a/chrome/browser/ssl/cert_report_helper.cc b/chrome/browser/ssl/cert_report_helper.cc |
index ad03413e44c29691ab752bf41b1dffe3a61873d0..287fb51bd2cc42cee53c91e0a66b99586941cc4b 100644 |
--- a/chrome/browser/ssl/cert_report_helper.cc |
+++ b/chrome/browser/ssl/cert_report_helper.cc |
@@ -4,6 +4,8 @@ |
#include "chrome/browser/ssl/cert_report_helper.h" |
+#include <utility> |
+ |
#include "base/logging.h" |
#include "base/metrics/field_trial.h" |
#include "base/prefs/pref_service.h" |
@@ -39,7 +41,7 @@ CertReportHelper::CertReportHelper( |
certificate_reporting::ErrorReport::InterstitialReason interstitial_reason, |
bool overridable, |
security_interstitials::MetricsHelper* metrics_helper) |
- : ssl_cert_reporter_(ssl_cert_reporter.Pass()), |
+ : ssl_cert_reporter_(std::move(ssl_cert_reporter)), |
web_contents_(web_contents), |
request_url_(request_url), |
ssl_info_(ssl_info), |
@@ -111,7 +113,7 @@ void CertReportHelper::FinishCertCollection( |
void CertReportHelper::SetSSLCertReporterForTesting( |
scoped_ptr<SSLCertReporter> ssl_cert_reporter) { |
- ssl_cert_reporter_ = ssl_cert_reporter.Pass(); |
+ ssl_cert_reporter_ = std::move(ssl_cert_reporter); |
} |
bool CertReportHelper::ShouldShowCertificateReporterCheckbox() { |