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

Unified Diff: components/password_manager/core/browser/password_store_factory_util.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
Index: components/password_manager/core/browser/password_store_factory_util.cc
diff --git a/components/password_manager/core/browser/password_store_factory_util.cc b/components/password_manager/core/browser/password_store_factory_util.cc
index 4c73f481468a7e5a5a66ded21fcb985884fb1c9b..49e3733280fb2d826b6f5d7c7a51599a813373c1 100644
--- a/components/password_manager/core/browser/password_store_factory_util.cc
+++ b/components/password_manager/core/browser/password_store_factory_util.cc
@@ -91,7 +91,7 @@ void TrimOrDeleteAffiliationCacheForStoreAndPath(
std::unique_ptr<LoginDatabase> CreateLoginDatabase(
const base::FilePath& profile_path) {
base::FilePath login_db_file_path = profile_path.Append(kLoginDataFileName);
- return base::WrapUnique(new LoginDatabase(login_db_file_path));
+ return base::MakeUnique<LoginDatabase>(login_db_file_path);
}
} // namespace password_manager

Powered by Google App Engine
This is Rietveld 408576698