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

Side by Side Diff: chrome/browser/extensions/extension_install_ui_util.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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/extensions/extension_install_ui_util.h" 5 #include "chrome/browser/extensions/extension_install_ui_util.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include <memory>
8
8 #include "chrome/browser/ui/extensions/extension_install_ui_factory.h" 9 #include "chrome/browser/ui/extensions/extension_install_ui_factory.h"
9 #include "extensions/browser/install/extension_install_ui.h" 10 #include "extensions/browser/install/extension_install_ui.h"
10 11
11 namespace extensions { 12 namespace extensions {
12 namespace install_ui { 13 namespace install_ui {
13 14
14 void ShowPostInstallUIForApproval(content::BrowserContext* context, 15 void ShowPostInstallUIForApproval(content::BrowserContext* context,
15 const WebstoreInstaller::Approval& approval, 16 const WebstoreInstaller::Approval& approval,
16 const Extension* extension) { 17 const Extension* extension) {
17 scoped_ptr<ExtensionInstallUI> install_ui( 18 std::unique_ptr<ExtensionInstallUI> install_ui(
18 extensions::CreateExtensionInstallUI(context)); 19 extensions::CreateExtensionInstallUI(context));
19 install_ui->SetUseAppInstalledBubble(approval.use_app_installed_bubble); 20 install_ui->SetUseAppInstalledBubble(approval.use_app_installed_bubble);
20 install_ui->SetSkipPostInstallUI(approval.skip_post_install_ui); 21 install_ui->SetSkipPostInstallUI(approval.skip_post_install_ui);
21 install_ui->OnInstallSuccess(extension, approval.installing_icon.bitmap()); 22 install_ui->OnInstallSuccess(extension, approval.installing_icon.bitmap());
22 } 23 }
23 24
24 } // namespace install_ui 25 } // namespace install_ui
25 } // namespace extensions 26 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698