| Index: chrome/browser/extensions/api/tabs/tabs_api.cc
|
| ===================================================================
|
| --- chrome/browser/extensions/api/tabs/tabs_api.cc (revision 185383)
|
| +++ chrome/browser/extensions/api/tabs/tabs_api.cc (working copy)
|
| @@ -599,7 +599,8 @@
|
| urls.push_back(GURL(chrome::kChromeUINewTabURL));
|
|
|
| #if defined(OS_CHROMEOS)
|
| - if (PanelManager::ShouldUsePanels(extension_id)) {
|
| + if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnablePanels) &&
|
| + PanelManager::ShouldUsePanels(extension_id)) {
|
| ShellWindow::CreateParams create_params;
|
| create_params.window_type = ShellWindow::WINDOW_TYPE_V1_PANEL;
|
| create_params.bounds = window_bounds;
|
|
|