diff options
Diffstat (limited to 'chrome/browser/ui/views/extensions/extension_dialog.cc')
-rw-r--r-- | chrome/browser/ui/views/extensions/extension_dialog.cc | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/chrome/browser/ui/views/extensions/extension_dialog.cc b/chrome/browser/ui/views/extensions/extension_dialog.cc index 9bcc1a3..b6a084b 100644 --- a/chrome/browser/ui/views/extensions/extension_dialog.cc +++ b/chrome/browser/ui/views/extensions/extension_dialog.cc @@ -6,8 +6,7 @@ #include "chrome/browser/chrome_notification_types.h" #include "chrome/browser/extensions/extension_host.h" -#include "chrome/browser/extensions/extension_process_manager.h" -#include "chrome/browser/extensions/extension_system.h" +#include "chrome/browser/extensions/extension_host_factory.h" #include "chrome/browser/profiles/profile.h" #include "chrome/browser/ui/views/constrained_window_views.h" #include "chrome/browser/ui/views/extensions/extension_dialog_observer.h" @@ -56,7 +55,8 @@ ExtensionDialog* ExtensionDialog::Show( int min_height, const string16& title, ExtensionDialogObserver* observer) { - extensions::ExtensionHost* host = CreateExtensionHost(url, profile); + extensions::ExtensionHost* host = + extensions::ExtensionHostFactory::CreateDialogHost(url, profile); if (!host) return NULL; // Preferred size must be set before views::Widget::CreateWindowWithParent @@ -80,20 +80,6 @@ ExtensionDialog* ExtensionDialog::Show( return dialog; } -// static -extensions::ExtensionHost* ExtensionDialog::CreateExtensionHost( - const GURL& url, - Profile* profile) { - DCHECK(profile); - ExtensionProcessManager* manager = - extensions::ExtensionSystem::Get(profile)->process_manager(); - - DCHECK(manager); - if (!manager) - return NULL; - return manager->CreateDialogHost(url); -} - void ExtensionDialog::InitWindow(ui::BaseWindow* base_window, int width, int height) { |