Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(457)

Unified Diff: chrome/browser/chromeos/ash_config.cc

Issue 2777223002: Gets chrome --mus some what working (Closed)
Patch Set: fix mac Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/ash_config.h ('k') | chrome/browser/chromeos/preferences.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « chrome/browser/chromeos/ash_config.h ('k') | chrome/browser/chromeos/preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698