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

Side by Side Diff: chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller.mm

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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #import "chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controlle r.h" 5 #import "chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controlle r.h"
6 6
7 #include "base/i18n/rtl.h" 7 #include "base/i18n/rtl.h"
8 #include "base/mac/bundle_locations.h" 8 #include "base/mac/bundle_locations.h"
9 #include "base/mac/mac_util.h" 9 #include "base/mac/mac_util.h"
10 #include "base/memory/scoped_ptr.h"
10 #include "base/strings/sys_string_conversions.h" 11 #include "base/strings/sys_string_conversions.h"
11 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
12 #include "chrome/browser/chrome_notification_types.h" 13 #include "chrome/browser/chrome_notification_types.h"
13 #include "chrome/browser/extensions/api/commands/command_service.h" 14 #include "chrome/browser/extensions/api/commands/command_service.h"
14 #include "chrome/browser/extensions/bundle_installer.h" 15 #include "chrome/browser/extensions/bundle_installer.h"
15 #include "chrome/browser/extensions/extension_action.h" 16 #include "chrome/browser/extensions/extension_action.h"
16 #include "chrome/browser/extensions/extension_action_manager.h" 17 #include "chrome/browser/extensions/extension_action_manager.h"
17 #include "chrome/browser/extensions/extension_install_ui.h" 18 #include "chrome/browser/extensions/extension_install_ui.h"
18 #include "chrome/browser/signin/signin_promo.h" 19 #include "chrome/browser/signin/signin_promo.h"
19 #include "chrome/browser/ui/browser.h" 20 #include "chrome/browser/ui/browser.h"
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 - (IBAction)onManageShortcutClicked:(id)sender { 688 - (IBAction)onManageShortcutClicked:(id)sender {
688 [self close]; 689 [self close];
689 std::string configure_url = chrome::kChromeUIExtensionsURL; 690 std::string configure_url = chrome::kChromeUIExtensionsURL;
690 configure_url += chrome::kExtensionConfigureCommandsSubPage; 691 configure_url += chrome::kExtensionConfigureCommandsSubPage;
691 chrome::NavigateParams params(chrome::GetSingletonTabNavigateParams( 692 chrome::NavigateParams params(chrome::GetSingletonTabNavigateParams(
692 browser_, GURL(configure_url))); 693 browser_, GURL(configure_url)));
693 chrome::Navigate(&params); 694 chrome::Navigate(&params);
694 } 695 }
695 696
696 - (IBAction)onAppShortcutClicked:(id)sender { 697 - (IBAction)onAppShortcutClicked:(id)sender {
697 ExtensionInstallUI::OpenAppInstalledUI(browser_->profile(), extension_->id()); 698 scoped_ptr<ExtensionInstallUI> install_ui(
699 chrome::CreateExtensionInstallUI(browser_->profile()));
700 install_ui->OpenAppInstalledUI(extension_->id());
698 } 701 }
699 702
700 - (void)awakeFromNib { 703 - (void)awakeFromNib {
701 if (bundle_) 704 if (bundle_)
702 return; 705 return;
703 [self initializeLabel]; 706 [self initializeLabel];
704 } 707 }
705 708
706 @end 709 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698