Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/views/frame/native_browser_frame_factory.h" | 5 #include "chrome/browser/ui/views/frame/native_browser_frame_factory.h" |
| 6 | 6 |
| 7 #include "chrome/browser/ui/views/frame/browser_frame_mus.h" | 7 #include "chrome/browser/ui/views/frame/browser_frame_mus.h" |
| 8 #include "chrome/browser/ui/views/frame/desktop_browser_frame_auralinux.h" | 8 #include "chrome/browser/ui/views/frame/desktop_browser_frame_auralinux.h" |
| 9 #include "services/service_manager/runner/common/client_util.h" | 9 #include "services/service_manager/runner/common/client_util.h" |
| 10 | 10 |
| 11 NativeBrowserFrame* NativeBrowserFrameFactory::Create( | 11 NativeBrowserFrame* NativeBrowserFrameFactory::Create( |
| 12 BrowserFrame* browser_frame, | 12 BrowserFrame* browser_frame, |
| 13 BrowserView* browser_view) { | 13 BrowserView* browser_view) { |
| 14 if (service_manager::ServiceManagerIsRemote()) | 14 if (service_manager::ServiceManagerIsRemote()) |
| 15 return new BrowserFrameMus(browser_frame, browser_view); | 15 return new BrowserFrameMus(browser_frame, browser_view); |
| 16 #if defined(USE_OZONE) | |
|
sky
2016/11/07 17:18:52
You shouldn't need this ifdef anymore, right?
tonikitoo
2016/11/07 17:22:18
Sorry, forgot to git add the change locally. It is
| |
| 17 NOTREACHED() << "For Ozone builds, only --mash launch is supported for now."; | |
| 18 return nullptr; | |
| 19 #else | |
| 16 return new DesktopBrowserFrameAuraLinux(browser_frame, browser_view); | 20 return new DesktopBrowserFrameAuraLinux(browser_frame, browser_view); |
| 21 #endif | |
| 17 } | 22 } |
| OLD | NEW |