Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1246)

Side by Side Diff: chrome/browser/ui/views/frame/immersive_mode_controller_factory_views.cc

Issue 1699963002: Remove HostDesktopType from CreateImmersiveModeController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-20
Patch Set: . Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/views/frame/immersive_mode_controller_factory_mac.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
6 #include "chrome/browser/ui/views/frame/immersive_mode_controller_stub.h" 5 #include "chrome/browser/ui/views/frame/immersive_mode_controller_stub.h"
7 6
8 #if defined(USE_ASH) 7 #if defined(USE_ASH)
9 #include "chrome/browser/ui/views/frame/immersive_mode_controller_ash.h" 8 #include "chrome/browser/ui/views/frame/immersive_mode_controller_ash.h"
10 #endif 9 #endif
11 10
12 namespace chrome { 11 namespace chrome {
13 12
14 ImmersiveModeController* CreateImmersiveModeController( 13 ImmersiveModeController* CreateImmersiveModeController() {
15 chrome::HostDesktopType host_desktop_type) {
16 #if defined(USE_ASH) 14 #if defined(USE_ASH)
17 if (host_desktop_type == chrome::HOST_DESKTOP_TYPE_ASH) 15 return new ImmersiveModeControllerAsh();
18 return new ImmersiveModeControllerAsh();
19 #endif 16 #endif
sky 2016/02/16 02:57:10 #else? (I believe we enabled warnings for control
scottmg 2016/02/17 00:12:49 Done.
20 17
21 return new ImmersiveModeControllerStub(); 18 return new ImmersiveModeControllerStub();
22 } 19 }
23 20
24 } // namespace chrome 21 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/immersive_mode_controller_factory_mac.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698