diff options
author | xtreit <xtreit@gmail.com> | 2015-04-24 08:06:21 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-24 15:06:30 +0000 |
commit | 7c6fe3a4d16ee92dd0bf1c6b08337b4f8e962aa7 (patch) | |
tree | 9751b61f4b117cb4111dc6d6072d26b4b0b3c1b1 /components | |
parent | 1f21a1f8ee4f13a0fed1c7ad3369439bfa854417 (diff) | |
download | chromium_src-7c6fe3a4d16ee92dd0bf1c6b08337b4f8e962aa7.zip chromium_src-7c6fe3a4d16ee92dd0bf1c6b08337b4f8e962aa7.tar.gz chromium_src-7c6fe3a4d16ee92dd0bf1c6b08337b4f8e962aa7.tar.bz2 |
Substitued pattern push_back(ptr.release()) with push_back(ptr.Pass()) in the following directories: chrome/browser/password_manager components/password_manager
BUG=457697
Review URL: https://codereview.chromium.org/1083083007
Cr-Commit-Position: refs/heads/master@{#326798}
Diffstat (limited to 'components')
4 files changed, 5 insertions, 5 deletions
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 7a20908..cdad6fe 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()); } diff --git a/components/password_manager/core/browser/password_manager_unittest.cc b/components/password_manager/core/browser/password_manager_unittest.cc index e5746e54..749044c 100644 --- a/components/password_manager/core/browser/password_manager_unittest.cc +++ b/components/password_manager/core/browser/password_manager_unittest.cc @@ -368,7 +368,7 @@ TEST_F(PasswordManagerTest, FormSubmitNoGoodMatch) { scoped_ptr<PasswordForm> existing_different( new PasswordForm(MakeSimpleForm())); existing_different->username_value = ASCIIToUTF16("google2"); - result.push_back(existing_different.release()); + result.push_back(existing_different.Pass()); EXPECT_CALL(driver_, FillPasswordForm(_)).Times(2); EXPECT_CALL(*store_, GetLogins(_, _, _)) .WillOnce(WithArg<2>(InvokeConsumer(&result))); diff --git a/components/password_manager/core/browser/password_store_default_unittest.cc b/components/password_manager/core/browser/password_store_default_unittest.cc index 324b783..12ded5b 100644 --- a/components/password_manager/core/browser/password_store_default_unittest.cc +++ b/components/password_manager/core/browser/password_store_default_unittest.cc @@ -121,7 +121,7 @@ TEST_F(PasswordStoreDefaultTest, NonASCIIData) { ScopedVector<PasswordForm> expected_forms; for (unsigned int i = 0; i < arraysize(form_data); ++i) { expected_forms.push_back( - CreatePasswordFormFromDataForTesting(form_data[i]).release()); + CreatePasswordFormFromDataForTesting(form_data[i]).Pass()); store->AddLogin(*expected_forms.back()); } diff --git a/components/password_manager/core/browser/password_store_unittest.cc b/components/password_manager/core/browser/password_store_unittest.cc index 6d1a350..ba4140b 100644 --- a/components/password_manager/core/browser/password_store_unittest.cc +++ b/components/password_manager/core/browser/password_store_unittest.cc @@ -225,7 +225,7 @@ TEST_F(PasswordStoreTest, IgnoreOldWwwGoogleLogins) { ScopedVector<PasswordForm> all_forms; for (size_t i = 0; i < arraysize(form_data); ++i) { all_forms.push_back( - CreatePasswordFormFromDataForTesting(form_data[i]).release()); + CreatePasswordFormFromDataForTesting(form_data[i]).Pass()); store->AddLogin(*all_forms.back()); } base::MessageLoop::current()->RunUntilIdle(); |