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

Unified Diff: ash/wm/window_state.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/wm/custom_frame_view_ash.cc ('k') | chrome/browser/about_flags.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_state.cc
diff --git a/ash/wm/window_state.cc b/ash/wm/window_state.cc
index 185372e5eab24982323ab776eef30680cf98f4f5..7a5dacc79cbe5c91ffd02ff842192e99e53d9c0e 100644
--- a/ash/wm/window_state.cc
+++ b/ash/wm/window_state.cc
@@ -43,12 +43,11 @@ WindowState::WindowState(aura::Window* window)
#if defined(OS_CHROMEOS)
// NOTE(pkotwicz): Animating to immersive fullscreen does not look good. When
- // the kAshEnableImmersiveFullscreenForAllWindows flag is set most windows
+ // switches::UseImmersiveFullscreenForAllWindows() returns true, most windows
// can be put into immersive fullscreen. It is not worth the added complexity
// to only animate to fullscreen if the window is put into immersive
// fullscreen.
- animate_to_fullscreen_ = !CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kAshEnableImmersiveFullscreenForAllWindows);
+ animate_to_fullscreen_ = !switches::UseImmersiveFullscreenForAllWindows();
#endif
}
« no previous file with comments | « ash/wm/custom_frame_view_ash.cc ('k') | chrome/browser/about_flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698