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

Unified Diff: mash/shell/shell_application_delegate.cc

Issue 1560223002: Add quick launcher for launching mojo apps from within mash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@launcher
Patch Set: . Created 4 years, 11 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/views/widget/widget.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 a9584465c2770fcb0f928a26e174fdb8b6759dfb..b3708351a437966ad344f0529335c94baf7da6a5 100644
--- a/mash/shell/shell_application_delegate.cc
+++ b/mash/shell/shell_application_delegate.cc
@@ -20,6 +20,7 @@ void ShellApplicationDelegate::Initialize(mojo::ApplicationImpl* app) {
StartBrowserDriver();
StartWindowManager();
StartSystemUI();
+ StartQuickLaunch();
}
bool ShellApplicationDelegate::ConfigureIncomingConnection(
@@ -47,6 +48,13 @@ void ShellApplicationDelegate::StartBrowserDriver() {
base::Unretained(this)));
}
+void ShellApplicationDelegate::StartQuickLaunch() {
+ StartRestartableService(
+ "mojo:quick_launch",
+ base::Bind(&ShellApplicationDelegate::StartQuickLaunch,
+ base::Unretained(this)));
+}
+
void ShellApplicationDelegate::StartRestartableService(
const std::string& url,
const base::Closure& restart_callback) {
« no previous file with comments | « mash/shell/shell_application_delegate.h ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698