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

Unified Diff: components/password_manager/content/renderer/credential_manager_client.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/content/renderer/credential_manager_client.cc
diff --git a/components/password_manager/content/renderer/credential_manager_client.cc b/components/password_manager/content/renderer/credential_manager_client.cc
index e38bf35c84301667c9e1ddc9a85a778a6b835264..3d0c250d669b4f86d42493df857ae4cd2b64e9af 100644
--- a/components/password_manager/content/renderer/credential_manager_client.cc
+++ b/components/password_manager/content/renderer/credential_manager_client.cc
@@ -48,11 +48,11 @@ std::unique_ptr<blink::WebCredential> CredentialInfoToWebCredential(
const CredentialInfo& info) {
switch (info.type) {
case CredentialType::CREDENTIAL_TYPE_FEDERATED:
- return base::WrapUnique(new blink::WebFederatedCredential(
- info.id, info.federation, info.name, info.icon));
+ return base::MakeUnique<blink::WebFederatedCredential>(
+ info.id, info.federation, info.name, info.icon);
case CredentialType::CREDENTIAL_TYPE_PASSWORD:
- return base::WrapUnique(new blink::WebPasswordCredential(
- info.id, info.password, info.name, info.icon));
+ return base::MakeUnique<blink::WebPasswordCredential>(
+ info.id, info.password, info.name, info.icon);
case CredentialType::CREDENTIAL_TYPE_EMPTY:
return nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698