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

Unified Diff: components/password_manager/core/browser/password_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_manager_unittest.cc
diff --git a/components/password_manager/core/browser/password_manager_unittest.cc b/components/password_manager/core/browser/password_manager_unittest.cc
index e5746e54b196a7dba2f0a8dd637760401382b59d..749044c0e32935f3f8f2886f5a7ad0e172275b62 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)));

Powered by Google App Engine
This is Rietveld 408576698