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

Unified Diff: ash/common/shell_delegate.h

Issue 2381753002: Use mojo SystemTray interfaces for both mash and classic ash (Closed)
Patch Set: review comments Created 4 years, 2 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
Index: ash/common/shell_delegate.h
diff --git a/ash/common/shell_delegate.h b/ash/common/shell_delegate.h
index 316cd5345d6ff6f06a8a48d18963a267d5db5910..f0d61707f2ec9d927f0c47c50369e6cff4b080e0 100644
--- a/ash/common/shell_delegate.h
+++ b/ash/common/shell_delegate.h
@@ -31,6 +31,10 @@ namespace ui {
class MenuModel;
}
+namespace shell {
+class Connector;
+}
+
namespace views {
class Widget;
}
@@ -57,6 +61,9 @@ class ASH_EXPORT ShellDelegate {
// The Shell owns the delegate.
virtual ~ShellDelegate() {}
+ // Returns the connector for the mojo service manager. Returns null in tests.
+ virtual ::shell::Connector* GetShellConnector() const = 0;
+
// Returns true if this is the first time that the shell has been run after
// the system has booted. false is returned after the shell has been
// restarted, typically due to logging in as a guest or logging out.

Powered by Google App Engine
This is Rietveld 408576698