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
3 // found in the LICENSE file.
5 #include "chrome/browser/ui/host_desktop.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"
11 ImmersiveModeController
* CreateImmersiveModeController(
12 chrome::HostDesktopType host_desktop_type
) {
13 if (host_desktop_type
== chrome::HOST_DESKTOP_TYPE_ASH
)
14 return new ImmersiveModeControllerAsh();
16 return new ImmersiveModeControllerStub();