OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/ui/apps/chrome_app_window_client.h" | 5 #include "chrome/browser/ui/apps/chrome_app_window_client.h" |
6 | 6 |
7 #include "chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.h
" | 7 #include "chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.h
" |
| 8 #include "services/service_manager/runner/common/client_util.h" |
8 | 9 |
9 // static | 10 // static |
10 extensions::NativeAppWindow* ChromeAppWindowClient::CreateNativeAppWindowImpl( | 11 extensions::NativeAppWindow* ChromeAppWindowClient::CreateNativeAppWindowImpl( |
11 extensions::AppWindow* app_window, | 12 extensions::AppWindow* app_window, |
12 const extensions::AppWindow::CreateParams& params) { | 13 const extensions::AppWindow::CreateParams& params) { |
13 ChromeNativeAppWindowViewsAuraAsh* window = | 14 // TODO: Mash should use ChromeNativeAppWindowViewsAuraAsh, but |
14 new ChromeNativeAppWindowViewsAuraAsh; | 15 // it can't because of dependencies on ash. http://crbug.com/679028. |
| 16 ChromeNativeAppWindowViewsAura* window = |
| 17 service_manager::ServiceManagerIsRemote() |
| 18 ? new ChromeNativeAppWindowViewsAura |
| 19 : new ChromeNativeAppWindowViewsAuraAsh; |
15 window->Init(app_window, params); | 20 window->Init(app_window, params); |
16 return window; | 21 return window; |
17 } | 22 } |
OLD | NEW |