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

Unified Diff: chrome/browser/ssl/cert_report_helper.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/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() {

Powered by Google App Engine
This is Rietveld 408576698