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

Side by Side Diff: mash/common/config.cc

Issue 2511233002: Add the beginning of a simple window manager that we'll support on Windows. (Closed)
Patch Set: . Created 4 years 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 unified diff | Download patch
« no previous file with comments | « mash/common/config.h ('k') | mash/login/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 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 "mash/common/config.h"
6
7 #include "base/command_line.h"
8
9 namespace mash {
10 namespace common {
11
12 const char kWindowManagerSwitch[] = "window-manager";
13
14 std::string GetWindowManagerServiceName() {
15 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kWindowManagerSwitch)) {
16 std::string service_name =
17 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
18 kWindowManagerSwitch);
19 return service_name;
20 }
21 // TODO(beng): move this constant to a mojom file in //ash.
22 return "ash";
23 }
24
25 } // namespace common
26 } // namespace mash
OLDNEW
« no previous file with comments | « mash/common/config.h ('k') | mash/login/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698