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

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

Issue 1083083007: Substitued pattern push_back(ptr.release()) with push_back(ptr.Pass()) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: release Pass substitution Created 5 years, 8 months 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_form_manager_unittest.cc
diff --git a/components/password_manager/core/browser/password_form_manager_unittest.cc b/components/password_manager/core/browser/password_form_manager_unittest.cc
index 7a209082af3a3565836d53061e3baa0e1018b391..cdad6fe1b679de88825691bdbbea4b7f206b1405 100644
--- a/components/password_manager/core/browser/password_form_manager_unittest.cc
+++ b/components/password_manager/core/browser/password_form_manager_unittest.cc
@@ -970,7 +970,7 @@ TEST_F(PasswordFormManagerTest, TestUpdateIncompleteCredentials) {
// Feed the incomplete credentials to the manager.
ScopedVector<PasswordForm> simulated_results;
- simulated_results.push_back(incomplete_form.release());
+ simulated_results.push_back(incomplete_form.Pass());
form_manager.OnGetPasswordStoreResults(simulated_results.Pass());
form_manager.ProvisionallySave(
@@ -1372,7 +1372,7 @@ TEST_F(PasswordFormManagerTest, DriverDeletedBeforeStoreDone) {
client_with_store.KillDriver();
ScopedVector<PasswordForm> simulated_results;
- simulated_results.push_back(form.release());
+ simulated_results.push_back(form.Pass());
form_manager.OnGetPasswordStoreResults(simulated_results.Pass());
}

Powered by Google App Engine
This is Rietveld 408576698