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

Unified Diff: components/password_manager/sync/browser/sync_credentials_filter_unittest.cc

Issue 2259813002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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
« no previous file with comments | « components/password_manager/core/browser/password_store_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/password_manager/sync/browser/sync_credentials_filter_unittest.cc
diff --git a/components/password_manager/sync/browser/sync_credentials_filter_unittest.cc b/components/password_manager/sync/browser/sync_credentials_filter_unittest.cc
index e5879ee11f7aba963a38ae4fe6faf4118eed4b36..4cbc7c53e0261431a4dc2462cde43f11b9c94d72 100644
--- a/components/password_manager/sync/browser/sync_credentials_filter_unittest.cc
+++ b/components/password_manager/sync/browser/sync_credentials_filter_unittest.cc
@@ -124,9 +124,9 @@ class CredentialsFilterTest : public SyncUsernameTestBase {
std::unique_ptr<PasswordFormManager> CreateFormManager(
LoginState login_state,
const PasswordForm& pending) {
- auto form_manager = base::WrapUnique(new PasswordFormManager(
+ auto form_manager = base::MakeUnique<PasswordFormManager>(
&password_manager_, &client_, driver_.AsWeakPtr(), pending,
- base::WrapUnique(new StubFormSaver)));
+ base::MakeUnique<StubFormSaver>());
ScopedVector<PasswordForm> saved_forms;
if (login_state == LoginState::EXISTING) {
« no previous file with comments | « components/password_manager/core/browser/password_store_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698