blob: 4b33bf6a8c9c171c836abeb00409b2d58e09233c [file] [log] [blame]
// 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 GetAshConfig() {
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