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

Unified Diff: chrome/browser/profiles/profile_io_data.cc

Issue 1552863003: Global conversion of Pass()→std::move(): CrOS edition (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/profiles/profile_io_data.cc
diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc
index 5c854107903727ee32bf221053364e4ab5c3be17..20d93b9a2c49d8247c1d0c1e70ce7f27e9f92ba4 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -513,7 +513,7 @@ void ProfileIOData::InitializeOnUIThread(Profile* profile) {
scoped_ptr<policy::PolicyCertVerifier> verifier =
policy::PolicyCertServiceFactory::CreateForProfile(profile);
policy_cert_verifier_ = verifier.get();
- cert_verifier_ = verifier.Pass();
+ cert_verifier_ = std::move(verifier);
#endif
// The URLBlacklistManager has to be created on the UI thread to register
// observers of |pref_service|, and it also has to clean up on
@@ -1097,7 +1097,7 @@ void ProfileIOData::Init(
if (use_system_key_slot_)
EnableNSSSystemKeySlotForResourceContext(resource_context_.get());
- certificate_provider_ = profile_params_->certificate_provider.Pass();
+ certificate_provider_ = std::move(profile_params_->certificate_provider);
#endif
if (g_cert_verifier_for_testing) {
@@ -1109,7 +1109,7 @@ void ProfileIOData::Init(
// The private slot won't be ready by this point. It shouldn't be necessary
// for cert trust purposes anyway.
scoped_refptr<net::CertVerifyProc> verify_proc(
- new chromeos::CertVerifyProcChromeOS(public_slot.Pass()));
+ new chromeos::CertVerifyProcChromeOS(std::move(public_slot)));
if (policy_cert_verifier_) {
DCHECK_EQ(policy_cert_verifier_, cert_verifier_.get());
policy_cert_verifier_->InitializeOnIOThread(verify_proc);

Powered by Google App Engine
This is Rietveld 408576698