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

Unified Diff: components/password_manager/core/browser/password_store.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.cc
diff --git a/components/password_manager/core/browser/password_store.cc b/components/password_manager/core/browser/password_store.cc
index 74146690c3ec93361e63ee73969133df1ed2766e..e128c7003b9181e1d5831c57a36b8dd6ac25698a 100644
--- a/components/password_manager/core/browser/password_store.cc
+++ b/components/password_manager/core/browser/password_store.cc
@@ -67,8 +67,9 @@ void PasswordStore::GetLoginsRequest::NotifyConsumerWithResults(
void PasswordStore::GetLoginsRequest::NotifyWithSiteStatistics(
std::vector<std::unique_ptr<InteractionsStats>> stats) {
- auto passed_stats(base::WrapUnique(
- new std::vector<std::unique_ptr<InteractionsStats>>(std::move(stats))));
+ auto passed_stats(
+ base::MakeUnique<std::vector<std::unique_ptr<InteractionsStats>>>(
+ std::move(stats)));
origin_task_runner_->PostTask(
FROM_HERE, base::Bind(&PasswordStoreConsumer::OnGetSiteStatistics,
consumer_weak_, base::Passed(&passed_stats)));

Powered by Google App Engine
This is Rietveld 408576698