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

Unified Diff: components/autofill/content/renderer/password_autofill_agent.cc

Issue 2257793002: 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/autofill/content/renderer/password_autofill_agent.cc
diff --git a/components/autofill/content/renderer/password_autofill_agent.cc b/components/autofill/content/renderer/password_autofill_agent.cc
index 282f10a3fa0a9999750d0a3218069a250db66568..34e28598f3145eb9c75ac0ff73b0ef58e46d428d 100644
--- a/components/autofill/content/renderer/password_autofill_agent.cc
+++ b/components/autofill/content/renderer/password_autofill_agent.cc
@@ -367,7 +367,7 @@ void UpdateFieldValueAndPropertiesMaskMap(
it->second.second |= added_flags;
} else {
(*field_value_and_properties_map)[element] = std::make_pair(
- value ? base::WrapUnique(new base::string16(*value)) : nullptr,
+ value ? base::MakeUnique<base::string16>(*value) : nullptr,
added_flags);
}
}

Powered by Google App Engine
This is Rietveld 408576698