| 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/host_desktop.h" | 5 #include "chrome/browser/ui/host_desktop.h" |
| 6 #include "chrome/browser/ui/views/frame/immersive_mode_controller_ash.h" | 6 #include "chrome/browser/ui/views/frame/immersive_mode_controller_ash.h" |
| 7 #include "chrome/browser/ui/views/frame/immersive_mode_controller_stub.h" | 7 #include "chrome/browser/ui/views/frame/immersive_mode_controller_stub.h" |
| 8 | 8 |
| 9 namespace chrome { | 9 namespace chrome { |
| 10 | 10 |
| 11 ImmersiveModeController* CreateImmersiveModeController( | 11 ImmersiveModeController* CreateImmersiveModeController( |
| 12 chrome::HostDesktopType host_desktop_type) { | 12 chrome::HostDesktopType host_desktop_type) { |
| 13 #if defined(USE_ASH) |
| 13 if (host_desktop_type == chrome::HOST_DESKTOP_TYPE_ASH) | 14 if (host_desktop_type == chrome::HOST_DESKTOP_TYPE_ASH) |
| 14 return new ImmersiveModeControllerAsh(); | 15 return new ImmersiveModeControllerAsh(); |
| 16 #endif |
| 15 | 17 |
| 16 return new ImmersiveModeControllerStub(); | 18 return new ImmersiveModeControllerStub(); |
| 17 } | 19 } |
| 18 | 20 |
| 19 } // namespace chrome | 21 } // namespace chrome |
| OLD | NEW |