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

Unified Diff: chrome/browser/extensions/unpacked_installer.cc

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header Created 4 years, 8 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/unpacked_installer.cc
diff --git a/chrome/browser/extensions/unpacked_installer.cc b/chrome/browser/extensions/unpacked_installer.cc
index bc28a4d2eba3dab917d01f3c2d61a5b9dc63cac0..f812a2f5f368e2391f6404ffb8128699c844337f 100644
--- a/chrome/browser/extensions/unpacked_installer.cc
+++ b/chrome/browser/extensions/unpacked_installer.cc
@@ -59,7 +59,7 @@ class SimpleExtensionLoadPrompt {
void OnInstallPromptDone(ExtensionInstallPrompt::Result result);
- scoped_ptr<ExtensionInstallPrompt> install_ui_;
+ std::unique_ptr<ExtensionInstallPrompt> install_ui_;
scoped_refptr<const Extension> extension_;
base::Closure callback_;
@@ -71,7 +71,7 @@ SimpleExtensionLoadPrompt::SimpleExtensionLoadPrompt(
Profile* profile,
const base::Closure& callback)
: extension_(extension), callback_(callback) {
- scoped_ptr<extensions::ExtensionInstallUI> ui(
+ std::unique_ptr<extensions::ExtensionInstallUI> ui(
extensions::CreateExtensionInstallUI(profile));
install_ui_.reset(new ExtensionInstallPrompt(
profile, ui->GetDefaultInstallDialogParent()));

Powered by Google App Engine
This is Rietveld 408576698