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

Unified Diff: ash/shell.cc

Issue 9264025: aura: Replace UI-feature GYP flags with switches. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 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/power_button_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index 0e9a14c5ebf67773743712e4043984d3b5caa67c..94808981ea83622fc237c06ec608782bb7447866 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -273,6 +273,9 @@ void Shell::Init() {
Shell::WindowMode Shell::ComputeWindowMode(const gfx::Size& monitor_size,
CommandLine* command_line) const {
+ if (command_line->HasSwitch(switches::kAuraForceCompactWindowMode))
+ return COMPACT_MODE;
+
// If user set the flag, use their desired behavior.
if (command_line->HasSwitch(switches::kAuraWindowMode)) {
std::string mode =
« no previous file with comments | « ash/ash_switches.cc ('k') | ash/wm/power_button_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698