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

Unified Diff: mash/shell/shell_application_delegate.cc

Issue 1683853003: Revert of ash/mash: Add a mus-client that sets up ash to provide the system ui for mash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « mash/shell/shell_application_delegate.h ('k') | ui/base/user_activity/user_activity_detector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/shell/shell_application_delegate.cc
diff --git a/mash/shell/shell_application_delegate.cc b/mash/shell/shell_application_delegate.cc
index 7b40ca8fb76eb61f39274731468c2838f72eaafe..032ad13f7c206b9f98ecf649c79c5ca2fdcdb453 100644
--- a/mash/shell/shell_application_delegate.cc
+++ b/mash/shell/shell_application_delegate.cc
@@ -5,15 +5,8 @@
#include "mash/shell/shell_application_delegate.h"
#include "base/bind.h"
-#include "base/command_line.h"
#include "mojo/shell/public/cpp/connection.h"
#include "mojo/shell/public/cpp/shell.h"
-
-namespace {
-
-const char kUseAshSysui[] = "use-ash-sysui";
-
-} // namespace
namespace mash {
namespace shell {
@@ -29,7 +22,8 @@
shell_ = shell;
StartBrowserDriver();
StartWindowManager();
- StartSystemUI();
+ StartWallpaper();
+ StartShelf();
StartQuickLaunch();
}
@@ -76,19 +70,6 @@
"mojo:desktop_wm",
base::Bind(&ShellApplicationDelegate::StartWindowManager,
base::Unretained(this)));
-}
-
-void ShellApplicationDelegate::StartSystemUI() {
- static bool use_ash =
- base::CommandLine::ForCurrentProcess()->HasSwitch(kUseAshSysui);
- if (use_ash) {
- StartRestartableService("mojo:ash_sysui",
- base::Bind(&ShellApplicationDelegate::StartSystemUI,
- base::Unretained(this)));
- } else {
- StartWallpaper();
- StartShelf();
- }
}
void ShellApplicationDelegate::StartWallpaper() {
« no previous file with comments | « mash/shell/shell_application_delegate.h ('k') | ui/base/user_activity/user_activity_detector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698