| Index: chrome/browser/chromeos/ash_config.cc
|
| diff --git a/chrome/browser/chromeos/ash_config.cc b/chrome/browser/chromeos/ash_config.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5b687391fdea1a6c342b9b01a0ce500b842a9d04
|
| --- /dev/null
|
| +++ b/chrome/browser/chromeos/ash_config.cc
|
| @@ -0,0 +1,23 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "chrome/browser/chromeos/ash_config.h"
|
| +
|
| +#include "base/command_line.h"
|
| +#include "chrome/common/chrome_switches.h"
|
| +#include "services/service_manager/runner/common/client_util.h"
|
| +
|
| +namespace chromeos {
|
| +
|
| +ash::Config GetConfig() {
|
| + if (!service_manager::ServiceManagerIsRemote())
|
| + return ash::Config::CLASSIC;
|
| +
|
| + return base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
|
| + switches::kMusConfig) == switches::kMash
|
| + ? ash::Config::MASH
|
| + : ash::Config::MUS;
|
| +}
|
| +
|
| +} // namespace chromeos
|
|
|