Index: chrome/browser/ui/browser.cc |
=================================================================== |
--- chrome/browser/ui/browser.cc (revision 85003) |
+++ chrome/browser/ui/browser.cc (working copy) |
@@ -84,6 +84,7 @@ |
#include "chrome/browser/ui/find_bar/find_bar_controller.h" |
#include "chrome/browser/ui/find_bar/find_tab_helper.h" |
#include "chrome/browser/ui/omnibox/location_bar.h" |
+#include "chrome/browser/ui/panels/extension_panel_originator.h" |
#include "chrome/browser/ui/panels/panel.h" |
#include "chrome/browser/ui/panels/panel_manager.h" |
#include "chrome/browser/ui/search_engines/search_engine_tab_helper.h" |
@@ -598,6 +599,9 @@ |
Browser* browser = Browser::CreateForApp(type, app_name, window_size, |
profile); |
+ Panel* panel = browser->window()->GetAsPanel(); |
jennb
2011/05/12 18:15:51
There are other places where a Browser of type PAN
jianli
2011/05/24 00:56:24
Removed since it is not needed now.
|
+ if (panel) |
+ panel->set_originator(new ExtensionPanelOriginator(extension, profile)); |
if (app_browser) |
*app_browser = browser; |