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

Unified Diff: components/password_manager/core/browser/export/password_exporter.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/export/password_exporter.cc
diff --git a/components/password_manager/core/browser/export/password_exporter.cc b/components/password_manager/core/browser/export/password_exporter.cc
index 01a4e019587b6533c312ae53748d35a26d647c12..e95fd85d1731eab9410d209a5069ec3b71f28672 100644
--- a/components/password_manager/core/browser/export/password_exporter.cc
+++ b/components/password_manager/core/browser/export/password_exporter.cc
@@ -33,8 +33,8 @@ void PasswordExporter::Export(
blocking_task_runner->PostTask(
FROM_HERE,
base::Bind(&WriteToFile, path,
- base::Passed(base::WrapUnique(new std::string(
- PasswordCSVWriter::SerializePasswords(passwords))))));
+ base::Passed(base::MakeUnique<std::string>(
+ PasswordCSVWriter::SerializePasswords(passwords)))));
}
// static

Powered by Google App Engine
This is Rietveld 408576698