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

Unified Diff: components/password_manager/core/common/credential_manager_types_unittest.cc

Issue 1852093002: components/password_manager: scoped_ptr -> unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and revert an accidental .proto change Created 4 years, 9 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/common/credential_manager_types_unittest.cc
diff --git a/components/password_manager/core/common/credential_manager_types_unittest.cc b/components/password_manager/core/common/credential_manager_types_unittest.cc
index 75fefb28c38af8fec26c0e5b046be28b7033c91e..46deeb548023463fa1957dc1c5f3f749595576c6 100644
--- a/components/password_manager/core/common/credential_manager_types_unittest.cc
+++ b/components/password_manager/core/common/credential_manager_types_unittest.cc
@@ -28,7 +28,7 @@ class CredentialManagerTypesTest : public testing::Test {
TEST_F(CredentialManagerTypesTest, CreatePasswordFormEmpty) {
CredentialInfo info;
- scoped_ptr<autofill::PasswordForm> form;
+ std::unique_ptr<autofill::PasswordForm> form;
// Empty CredentialInfo -> nullptr.
form = CreatePasswordFormFromCredentialInfo(info, origin_);
@@ -37,7 +37,7 @@ TEST_F(CredentialManagerTypesTest, CreatePasswordFormEmpty) {
TEST_F(CredentialManagerTypesTest, CreatePasswordFormFederation) {
CredentialInfo info;
- scoped_ptr<autofill::PasswordForm> form;
+ std::unique_ptr<autofill::PasswordForm> form;
info.id = base::ASCIIToUTF16("id");
info.name = base::ASCIIToUTF16("name");
@@ -63,7 +63,7 @@ TEST_F(CredentialManagerTypesTest, CreatePasswordFormFederation) {
TEST_F(CredentialManagerTypesTest, CreatePasswordFormLocal) {
CredentialInfo info;
- scoped_ptr<autofill::PasswordForm> form;
+ std::unique_ptr<autofill::PasswordForm> form;
info.id = base::ASCIIToUTF16("id");
info.name = base::ASCIIToUTF16("name");

Powered by Google App Engine
This is Rietveld 408576698