Index: components/password_manager/core/common/credential_manager_types.cc |
diff --git a/components/password_manager/core/common/credential_manager_types.cc b/components/password_manager/core/common/credential_manager_types.cc |
index acdff8d691643073391b8b59488ee97170f5181d..6af4a5096b81ab893ec9190ec7a1a6989ebe6479 100644 |
--- a/components/password_manager/core/common/credential_manager_types.cc |
+++ b/components/password_manager/core/common/credential_manager_types.cc |
@@ -42,7 +42,7 @@ scoped_ptr<autofill::PasswordForm> CreatePasswordFormFromCredentialInfo( |
const GURL& origin) { |
scoped_ptr<autofill::PasswordForm> form; |
if (info.type == CredentialType::CREDENTIAL_TYPE_EMPTY) |
- return form.Pass(); |
+ return form; |
form.reset(new autofill::PasswordForm); |
form->icon_url = info.icon; |
@@ -58,7 +58,7 @@ scoped_ptr<autofill::PasswordForm> CreatePasswordFormFromCredentialInfo( |
? origin.spec() |
: "federation://" + origin.host() + "/" + info.federation.host(); |
form->username_value = info.id; |
- return form.Pass(); |
+ return form; |
} |
bool CredentialInfo::operator==(const CredentialInfo& rhs) const { |
return (type == rhs.type && id == rhs.id && name == rhs.name && |