| Index: chrome/browser/extensions/api/tabs/tabs_api.cc
|
| diff --git a/chrome/browser/extensions/api/tabs/tabs_api.cc b/chrome/browser/extensions/api/tabs/tabs_api.cc
|
| index 928175910b0f15332d17d3f5169d3c50d6e5874b..3dd842373986d2836832c224f774c8e3e0b85050 100644
|
| --- a/chrome/browser/extensions/api/tabs/tabs_api.cc
|
| +++ b/chrome/browser/extensions/api/tabs/tabs_api.cc
|
| @@ -486,7 +486,6 @@ ExtensionFunction::ResponseAction WindowsCreateFunction::Run() {
|
| Browser::Type window_type = Browser::TYPE_TABBED;
|
|
|
| #if defined(USE_ASH)
|
| - bool create_ash_panel = false;
|
| bool saw_focus_key = false;
|
| #endif // defined(USE_ASH)
|
|
|
| @@ -509,18 +508,6 @@ ExtensionFunction::ResponseAction WindowsCreateFunction::Run() {
|
|
|
| case windows::CREATE_TYPE_PANEL: {
|
| extension_id = extension()->id();
|
| -#if defined(USE_ASH)
|
| - // Only ChromeOS' version of chrome.windows.create would create a panel
|
| - // window. It is whitelisted to Hangouts extension for limited time until
|
| - // it transitioned to other types of windows.
|
| - for (const char* id : extension_misc::kHangoutsExtensionIds) {
|
| - if (extension_id == id) {
|
| - create_ash_panel = true;
|
| - break;
|
| - }
|
| - }
|
| -#endif // defined(USE_ASH)
|
| - // Everything else gets POPUP instead of PANEL.
|
| // TODO(dimich): Eventually, remove the 'panel' values form valid
|
| // window.create parameters. However, this is a more breaking change, so
|
| // for now simply treat it as a POPUP.
|
| @@ -573,31 +560,6 @@ ExtensionFunction::ResponseAction WindowsCreateFunction::Run() {
|
| }
|
| }
|
|
|
| -#if defined(USE_ASH)
|
| - if (create_ash_panel) {
|
| - if (urls.empty())
|
| - urls.push_back(GURL(chrome::kChromeUINewTabURL));
|
| -
|
| - AppWindow::CreateParams create_params;
|
| - create_params.window_type = AppWindow::WINDOW_TYPE_V1_PANEL;
|
| - create_params.window_key = extension_id;
|
| - create_params.window_spec.bounds = window_bounds;
|
| - create_params.focused = saw_focus_key && focused;
|
| - AppWindow* app_window =
|
| - new AppWindow(window_profile, new ChromeAppDelegate(true), extension());
|
| - AshPanelContents* ash_panel_contents = new AshPanelContents(app_window);
|
| - app_window->Init(urls[0], ash_panel_contents, render_frame_host(),
|
| - create_params);
|
| - WindowController* window_controller =
|
| - WindowControllerList::GetInstance()->FindWindowById(
|
| - app_window->session_id().id());
|
| - if (!window_controller)
|
| - return RespondNow(Error(kUnknownErrorDoNotUse));
|
| - return RespondNow(
|
| - OneArgument(window_controller->CreateWindowValueWithTabs(extension())));
|
| - }
|
| -#endif // defined(USE_ASH)
|
| -
|
| // Create a new BrowserWindow.
|
| Browser::CreateParams create_params(window_type, window_profile,
|
| user_gesture());
|
|
|