| Index: ui/aura_shell/shell.cc
|
| diff --git a/ui/aura_shell/shell.cc b/ui/aura_shell/shell.cc
|
| index 406215edf0c8b29e878f604d4eda60f520fb529d..cf55c7bbc1f27e66c63130abbacaa1ed4b6624e5 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::kAuraWorkspaceManager)) {
|
| EnableWorkspaceManager();
|
| } else {
|
| internal::ToplevelLayoutManager* toplevel_layout_manager =
|
|
|