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

Unified Diff: components/password_manager/core/browser/password_store.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers 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: components/password_manager/core/browser/password_store.cc
diff --git a/components/password_manager/core/browser/password_store.cc b/components/password_manager/core/browser/password_store.cc
index 12a36d838a498110ec17abbee18afaec5f8f6764..52bb385df04daa181d9a983ee6a0c572985ac516 100644
--- a/components/password_manager/core/browser/password_store.cc
+++ b/components/password_manager/core/browser/password_store.cc
@@ -57,7 +57,7 @@ void PasswordStore::GetLoginsRequest::NotifyConsumerWithResults(
login = nullptr;
}
}
- results = remaining_logins.Pass();
+ results = std::move(remaining_logins);
}
origin_task_runner_->PostTask(
@@ -91,7 +91,7 @@ bool PasswordStore::Init(const syncer::SyncableService::StartSyncFlare& flare) {
void PasswordStore::SetAffiliatedMatchHelper(
scoped_ptr<AffiliatedMatchHelper> helper) {
- affiliated_match_helper_ = helper.Pass();
+ affiliated_match_helper_ = std::move(helper);
}
void PasswordStore::AddLogin(const PasswordForm& form) {
@@ -402,7 +402,7 @@ void PasswordStore::GetAutofillableLoginsImpl(
ScopedVector<PasswordForm> obtained_forms;
if (!FillAutofillableLogins(&obtained_forms))
obtained_forms.clear();
- request->NotifyConsumerWithResults(obtained_forms.Pass());
+ request->NotifyConsumerWithResults(std::move(obtained_forms));
}
void PasswordStore::GetBlacklistLoginsImpl(
@@ -410,7 +410,7 @@ void PasswordStore::GetBlacklistLoginsImpl(
ScopedVector<PasswordForm> obtained_forms;
if (!FillBlacklistLogins(&obtained_forms))
obtained_forms.clear();
- request->NotifyConsumerWithResults(obtained_forms.Pass());
+ request->NotifyConsumerWithResults(std::move(obtained_forms));
}
void PasswordStore::NotifySiteStats(const GURL& origin_domain,
@@ -441,7 +441,7 @@ void PasswordStore::GetLoginsWithAffiliationsImpl(
results.insert(results.end(), more_results.begin(), more_results.end());
more_results.weak_clear();
}
- request->NotifyConsumerWithResults(results.Pass());
+ request->NotifyConsumerWithResults(std::move(results));
}
void PasswordStore::ScheduleGetLoginsWithAffiliations(
@@ -464,7 +464,7 @@ scoped_ptr<PasswordForm> PasswordStore::GetLoginImpl(
!candidate->is_public_suffix_match) {
scoped_ptr<PasswordForm> result(candidate);
candidate = nullptr;
- return result.Pass();
+ return result;
}
}
return make_scoped_ptr<PasswordForm>(nullptr);

Powered by Google App Engine
This is Rietveld 408576698