Index: ui/aura_shell/shell.cc |
diff --git a/ui/aura_shell/shell.cc b/ui/aura_shell/shell.cc |
index 406215edf0c8b29e878f604d4eda60f520fb529d..3579fe192a7622dceb40c2191c1fbdbcd48372dd 100644 |
--- a/ui/aura_shell/shell.cc |
+++ b/ui/aura_shell/shell.cc |
@@ -218,10 +218,11 @@ void Shell::Init() { |
GetContainer(aura_shell::internal::kShellWindowId_StatusContainer)-> |
SetLayoutManager(status_area_layout_manager); |
- if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kAuraNoShadows)) |
+ CommandLine* command_line = CommandLine::ForCurrentProcess(); |
+ if (!command_line->HasSwitch(switches::kAuraNoShadows)) |
shadow_controller_.reset(new internal::ShadowController()); |
- if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kAuraWindows)) { |
+ if (command_line->HasSwitch(switches::kAuraConstrainedWindows)) { |
EnableWorkspaceManager(); |
} else { |
internal::ToplevelLayoutManager* toplevel_layout_manager = |