| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/chromeos/ash_config.h" |
| 6 |
| 7 #include "base/command_line.h" |
| 8 #include "chrome/common/chrome_switches.h" |
| 9 #include "services/service_manager/runner/common/client_util.h" |
| 10 |
| 11 namespace chromeos { |
| 12 |
| 13 ash::Config GetConfig() { |
| 14 if (!service_manager::ServiceManagerIsRemote()) |
| 15 return ash::Config::CLASSIC; |
| 16 |
| 17 return base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
| 18 switches::kMusConfig) == switches::kMash |
| 19 ? ash::Config::MASH |
| 20 : ash::Config::MUS; |
| 21 } |
| 22 |
| 23 } // namespace chromeos |
| OLD | NEW |