Chromium Code Reviews| Index: chrome/browser/ui/cocoa/extensions/extension_installed_bubble_bridge.mm |
| diff --git a/chrome/browser/ui/cocoa/extensions/extension_installed_bubble_bridge.mm b/chrome/browser/ui/cocoa/extensions/extension_installed_bubble_bridge.mm |
| index 1639f73eaa30ad9138f10edb0a61f5ff9d6e1119..beb8f68d04b5fd9c09f51634cd4aab10147f1626 100644 |
| --- a/chrome/browser/ui/cocoa/extensions/extension_installed_bubble_bridge.mm |
| +++ b/chrome/browser/ui/cocoa/extensions/extension_installed_bubble_bridge.mm |
| @@ -6,6 +6,7 @@ |
| #include "base/i18n/rtl.h" |
| #include "base/utf_string_conversions.h" |
| +#include "chrome/browser/extensions/bundle_installer.h" |
| #include "chrome/browser/infobars/infobar_tab_helper.h" |
| #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" |
| #include "chrome/browser/tab_contents/simple_alert_infobar_delegate.h" |
| @@ -22,6 +23,8 @@ |
| #include "ui/base/l10n/l10n_util.h" |
| #include "ui/gfx/image/image.h" |
| +using extensions::BundleInstaller; |
| + |
| // When an extension is installed on Mac with neither browser action nor |
| // page action icons, show an infobar instead of a popup bubble. |
| static void ShowGenericExtensionInstalledInfoBar( |
| @@ -64,6 +67,7 @@ void ShowExtensionInstalledBubble( |
| [[ExtensionInstalledBubbleController alloc] |
| initWithParentWindow:browser->window()->GetNativeHandle() |
| extension:extension |
| + bundle:NULL |
| browser:browser |
| icon:icon]; |
| } else { |
| @@ -75,3 +79,16 @@ void ShowExtensionInstalledBubble( |
| } |
| } // namespace browser |
| + |
| +void extensions::BundleInstaller::ShowInstalledBubble( |
| + const BundleInstaller* bundle, Browser* browser) { |
| + |
|
Robert Sesek
2012/02/27 18:59:20
nit: remove
jstritar
2012/03/05 18:05:08
Done.
|
| + // The controller is deallocated when the window is closed, so no need to |
| + // worry about it here. |
| + [[ExtensionInstalledBubbleController alloc] |
| + initWithParentWindow:browser->window()->GetNativeHandle() |
| + extension:NULL |
| + bundle:bundle |
| + browser:browser |
| + icon:SkBitmap()]; |
| +} |