Index: chrome/browser/extensions/api/tabs/tabs.cc |
diff --git a/chrome/browser/extensions/api/tabs/tabs.cc b/chrome/browser/extensions/api/tabs/tabs.cc |
index 29100887b3efeb43add40bb9eef66e70a0e5cf6a..277f2db46c089a43464d28fb6a2f208e4a0494c3 100644 |
--- a/chrome/browser/extensions/api/tabs/tabs.cc |
+++ b/chrome/browser/extensions/api/tabs/tabs.cc |
@@ -553,14 +553,9 @@ bool CreateWindowFunction::RunImpl() { |
} else if (type_str == keys::kWindowTypeValuePanel) { |
extension_id = GetExtension()->id(); |
bool use_panels = false; |
-#if !defined(OS_ANDROID) |
+#if !defined(OS_ANDROID) && !defined(USE_ASH) |
use_panels = PanelManager::ShouldUsePanels(extension_id); |
#endif |
-#if defined(USE_ASH) |
- if (CommandLine::ForCurrentProcess()->HasSwitch( |
- ash::switches::kAuraPanelManager)) |
- use_panels = true; |
-#endif |
if (use_panels) |
window_type = Browser::TYPE_PANEL; |
else |
@@ -575,18 +570,7 @@ bool CreateWindowFunction::RunImpl() { |
if (window_type == Browser::TYPE_PANEL) { |
std::string title = |
web_app::GenerateApplicationNameFromExtensionId(extension_id); |
-#if defined(USE_ASH) |
- // Aura Panels create a new PanelViewAura. |
- if (CommandLine::ForCurrentProcess()->HasSwitch( |
- ash::switches::kAuraPanelManager)) { |
- // Note: Panels ignore all but the first url provided. |
- PanelViewAura* panel_view = new PanelViewAura(title); |
- panel_view->Init(window_profile, urls[0], panel_bounds); |
- result_.reset(panel_view->extension_window_controller()-> |
- CreateWindowValueWithTabs()); |
- return true; |
- } |
-#else |
+#if !defined(USE_ASH) |
if (CommandLine::ForCurrentProcess()->HasSwitch( |
switches::kBrowserlessPanels)) { |
// Note: Panels ignore all but the first url provided. |