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

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: 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: 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 f872c9064e0b6826c6b5c8ab86f0bd279f41829f..73ae3a8ee51d364297cf13059e48afe8e810dacf 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