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

Unified Diff: chrome/browser/extensions/webstore_install_with_prompt.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/webstore_install_with_prompt.cc
diff --git a/chrome/browser/extensions/webstore_install_with_prompt.cc b/chrome/browser/extensions/webstore_install_with_prompt.cc
index 6f2915fac2d153dfdb6387d6cddbdfda660c4850..86fd5631deebb1c2a2756c4dc686a4b2e68e39bf 100644
--- a/chrome/browser/extensions/webstore_install_with_prompt.cc
+++ b/chrome/browser/extensions/webstore_install_with_prompt.cc
@@ -57,16 +57,15 @@ const GURL& WebstoreInstallWithPrompt::GetRequestorURL() const {
std::unique_ptr<ExtensionInstallPrompt::Prompt>
WebstoreInstallWithPrompt::CreateInstallPrompt() const {
- return base::WrapUnique(new ExtensionInstallPrompt::Prompt(
- ExtensionInstallPrompt::INSTALL_PROMPT));
+ return base::MakeUnique<ExtensionInstallPrompt::Prompt>(
+ ExtensionInstallPrompt::INSTALL_PROMPT);
}
std::unique_ptr<ExtensionInstallPrompt>
WebstoreInstallWithPrompt::CreateInstallUI() {
// Create an ExtensionInstallPrompt. If the parent window is NULL, the dialog
// will be placed in the middle of the screen.
- return base::WrapUnique(
- new ExtensionInstallPrompt(profile(), parent_window_));
+ return base::MakeUnique<ExtensionInstallPrompt>(profile(), parent_window_);
}
bool WebstoreInstallWithPrompt::ShouldShowPostInstallUI() const {
« no previous file with comments | « chrome/browser/extensions/update_install_gate_unittest.cc ('k') | chrome/browser/extensions/webstore_standalone_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698