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

Unified Diff: components/password_manager/core/browser/password_manager_test_utils.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/browser/password_manager_test_utils.cc
diff --git a/components/password_manager/core/browser/password_manager_test_utils.cc b/components/password_manager/core/browser/password_manager_test_utils.cc
index ccf2829fd66815f00d762d3330b6fb2cefbd4b6e..73f28571a64e8bf157d47df061f2944e86a4a036 100644
--- a/components/password_manager/core/browser/password_manager_test_utils.cc
+++ b/components/password_manager/core/browser/password_manager_test_utils.cc
@@ -33,9 +33,9 @@ const char kTestingFederationUrlSpec[] = "https://accounts.google.com/login";
const int kTestingDaysAfterPasswordsAreSynced = 1;
const wchar_t kTestingFederatedLoginMarker[] = L"__federated__";
-scoped_ptr<PasswordForm> CreatePasswordFormFromDataForTesting(
+std::unique_ptr<PasswordForm> CreatePasswordFormFromDataForTesting(
const PasswordFormData& form_data) {
- scoped_ptr<PasswordForm> form(new PasswordForm());
+ std::unique_ptr<PasswordForm> form(new PasswordForm());
form->scheme = form_data.scheme;
form->preferred = form_data.preferred;
form->ssl_valid = form_data.ssl_valid;
@@ -110,7 +110,7 @@ bool ContainsEqualPasswordFormsUnordered(
void SetFeatures(const std::vector<const base::Feature*>& enable_features,
const std::vector<const base::Feature*>& disable_features,
- scoped_ptr<base::FeatureList> feature_list) {
+ std::unique_ptr<base::FeatureList> feature_list) {
std::string enable_overrides;
std::string disable_overrides;

Powered by Google App Engine
This is Rietveld 408576698