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

Side by Side Diff: chrome/browser/extensions/extension_install_ui_util.cc

Issue 634313004: Display dialog when app install succeeds / fails on Athena (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 "base/memory/scoped_ptr.h"
8 #include "chrome/browser/extensions/extension_install_ui.h" 8 #include "chrome/browser/extensions/extension_install_ui.h"
9 9
10 namespace extensions { 10 namespace extensions {
11 namespace install_ui { 11 namespace install_ui {
12 12
13 void ShowPostInstallUIForApproval(Profile* profile, 13 void ShowPostInstallUIForApproval(Profile* profile,
14 const WebstoreInstaller::Approval& approval, 14 const WebstoreInstaller::Approval& approval,
15 const Extension* extension) { 15 const Extension* extension) {
16 scoped_ptr<ExtensionInstallUI> install_ui( 16 scoped_ptr<ExtensionInstallUI> install_ui(
17 ExtensionInstallUI::Create(profile)); 17 chrome::CreateExtensionInstallUI(profile));
18 install_ui->SetUseAppInstalledBubble(approval.use_app_installed_bubble); 18 install_ui->SetUseAppInstalledBubble(approval.use_app_installed_bubble);
19 install_ui->set_skip_post_install_ui(approval.skip_post_install_ui); 19 install_ui->set_skip_post_install_ui(approval.skip_post_install_ui);
20 install_ui->OnInstallSuccess(extension, approval.installing_icon.bitmap()); 20 install_ui->OnInstallSuccess(extension, approval.installing_icon.bitmap());
21 } 21 }
22 22
23 } // namespace install_ui 23 } // namespace install_ui
24 } // namespace extensions 24 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698