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

Unified Diff: chrome/browser/extensions/extension_reenabler.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/extension_reenabler.cc
diff --git a/chrome/browser/extensions/extension_reenabler.cc b/chrome/browser/extensions/extension_reenabler.cc
index eda29a0ea75ee9d95667b2ec029cc1c5c5c7f6a8..8019dc853ee19000d800e2f508503a9c5df12ea9 100644
--- a/chrome/browser/extensions/extension_reenabler.cc
+++ b/chrome/browser/extensions/extension_reenabler.cc
@@ -97,7 +97,7 @@ ExtensionReenabler::ExtensionReenabler(
base::Bind(&ExtensionReenabler::OnInstallPromptDone,
weak_factory_.GetWeakPtr()),
extension.get(), nullptr,
- base::WrapUnique(new ExtensionInstallPrompt::Prompt(type)),
+ base::MakeUnique<ExtensionInstallPrompt::Prompt>(type),
show_dialog_callback_);
}
}
@@ -173,7 +173,7 @@ void ExtensionReenabler::OnWebstoreResponseParseSuccess(
base::Bind(&ExtensionReenabler::OnInstallPromptDone,
weak_factory_.GetWeakPtr()),
extension_.get(), nullptr,
- base::WrapUnique(new ExtensionInstallPrompt::Prompt(type)),
+ base::MakeUnique<ExtensionInstallPrompt::Prompt>(type),
show_dialog_callback_);
}
}

Powered by Google App Engine
This is Rietveld 408576698