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

Unified Diff: chrome/browser/ui/extensions/extension_enable_flow.cc

Issue 2251263003: 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/ui/extensions/extension_enable_flow.cc
diff --git a/chrome/browser/ui/extensions/extension_enable_flow.cc b/chrome/browser/ui/extensions/extension_enable_flow.cc
index 6fd22eee8a90644144b0d9e773e708718657f461..9af3285625148cd4131ba57670d0ed23a1f96851 100644
--- a/chrome/browser/ui/extensions/extension_enable_flow.cc
+++ b/chrome/browser/ui/extensions/extension_enable_flow.cc
@@ -118,12 +118,11 @@ void ExtensionEnableFlow::CheckPermissionAndMaybePromptUser() {
ExtensionInstallPrompt::PromptType type =
ExtensionInstallPrompt::GetReEnablePromptTypeForExtension(profile_,
extension);
- prompt_->ShowDialog(
- base::Bind(&ExtensionEnableFlow::InstallPromptDone,
- weak_ptr_factory_.GetWeakPtr()),
- extension, nullptr,
- base::WrapUnique(new ExtensionInstallPrompt::Prompt(type)),
- ExtensionInstallPrompt::GetDefaultShowDialogCallback());
+ prompt_->ShowDialog(base::Bind(&ExtensionEnableFlow::InstallPromptDone,
+ weak_ptr_factory_.GetWeakPtr()),
+ extension, nullptr,
+ base::MakeUnique<ExtensionInstallPrompt::Prompt>(type),
+ ExtensionInstallPrompt::GetDefaultShowDialogCallback());
}
void ExtensionEnableFlow::CreatePrompt() {
« no previous file with comments | « chrome/browser/ui/content_settings/content_setting_image_model.cc ('k') | chrome/browser/ui/omnibox/chrome_omnibox_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698