Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / ui / views / frame / immersive_mode_controller_factory_ash.cc
blob1d8848ae58ddd94865c7ba6003358f0278906b9b
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"
9 namespace chrome {
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();
19 } // namespace chrome