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

Unified Diff: ash/wm/custom_frame_view_ash.cc

Issue 135053006: Enable immersive fullscreen for non-browser windows by default (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/ash_switches.cc ('k') | ash/wm/window_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/custom_frame_view_ash.cc
diff --git a/ash/wm/custom_frame_view_ash.cc b/ash/wm/custom_frame_view_ash.cc
index 16d71987fba42470b574101ab78393318cdf5bca..a6530394c22d0d99f6a2711ab2c380c6ec419459 100644
--- a/ash/wm/custom_frame_view_ash.cc
+++ b/ash/wm/custom_frame_view_ash.cc
@@ -43,8 +43,8 @@ const gfx::Font& GetTitleFont() {
// CustomFrameViewAshWindowStateDelegate
// Handles a user's fullscreen request (Shift+F4/F4). Puts the window into
-// immersive fullscreen if the kAshEnableImmersiveFullscreenForAllWindows
-// flag is set.
+// immersive fullscreen if immersive fullscreen is enabled for non-browser
+// windows.
class CustomFrameViewAshWindowStateDelegate
: public ash::wm::WindowStateDelegate,
public ash::wm::WindowStateObserver,
@@ -57,8 +57,7 @@ class CustomFrameViewAshWindowStateDelegate
#if defined(OS_CHROMEOS)
// TODO(pkotwicz): Investigate if immersive fullscreen can be enabled for
// Windows Ash.
- if (CommandLine::ForCurrentProcess()->HasSwitch(
- ash::switches::kAshEnableImmersiveFullscreenForAllWindows)) {
+ if (ash::switches::UseImmersiveFullscreenForAllWindows()) {
immersive_fullscreen_controller_.reset(
new ash::ImmersiveFullscreenController);
custom_frame_view->InitImmersiveFullscreenControllerForView(
« no previous file with comments | « ash/ash_switches.cc ('k') | ash/wm/window_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698