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

Unified Diff: chrome/browser/extensions/api/autofill_private/autofill_util.cc

Issue 2257113002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: chrome/browser/extensions/api/autofill_private/autofill_util.cc
diff --git a/chrome/browser/extensions/api/autofill_private/autofill_util.cc b/chrome/browser/extensions/api/autofill_private/autofill_util.cc
index 3eb7f25eba3de44c7781c9f416c4ad1ff0dcd090..891815fbf3c450bddade838f00326499f6b1dd2b 100644
--- a/chrome/browser/extensions/api/autofill_private/autofill_util.cc
+++ b/chrome/browser/extensions/api/autofill_private/autofill_util.cc
@@ -62,8 +62,8 @@ std::unique_ptr<std::vector<std::string>> GetValueList(
std::unique_ptr<std::string> GetStringFromProfile(
const autofill::AutofillProfile& profile,
const autofill::ServerFieldType& type) {
- return base::WrapUnique(
- new std::string(base::UTF16ToUTF8(profile.GetRawInfo(type))));
+ return base::MakeUnique<std::string>(
+ base::UTF16ToUTF8(profile.GetRawInfo(type)));
}
autofill_private::AddressEntry ProfileToAddressEntry(

Powered by Google App Engine
This is Rietveld 408576698