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

Unified Diff: mash/login/login.cc

Issue 2118083002: ShellClient -> Service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mus2
Patch Set: . Created 4 years, 5 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/login/login.h ('k') | mash/quick_launch/quick_launch_application.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/login/login.cc
diff --git a/mash/login/login.cc b/mash/login/login.cc
index ccd5fcfb935dd826982b1a5844cdc28a094707b5..190dc15a23d62b8155a26138e93b57f59c56c47f 100644
--- a/mash/login/login.cc
+++ b/mash/login/login.cc
@@ -16,7 +16,7 @@
#include "mash/login/public/interfaces/login.mojom.h"
#include "mojo/public/cpp/bindings/binding_set.h"
#include "services/shell/public/cpp/connector.h"
-#include "services/shell/public/cpp/shell_client.h"
+#include "services/shell/public/cpp/service.h"
#include "services/tracing/public/cpp/tracing_impl.h"
#include "services/ui/public/cpp/property_type_converters.h"
#include "services/ui/public/interfaces/user_access_manager.mojom.h"
@@ -132,7 +132,7 @@ class UI : public views::WidgetDelegateView,
DISALLOW_COPY_AND_ASSIGN(UI);
};
-class Login : public shell::ShellClient,
+class Login : public shell::Service,
public shell::InterfaceFactory<mojom::Login>,
public mojom::Login {
public:
@@ -147,10 +147,10 @@ class Login : public shell::ShellClient,
}
private:
- // shell::ShellClient:
- void Initialize(shell::Connector* connector,
- const shell::Identity& identity,
- uint32_t id) override {
+ // shell::Service:
+ void OnStart(shell::Connector* connector,
+ const shell::Identity& identity,
+ uint32_t id) override {
connector_ = connector;
identity_ = identity;
tracing_.Initialize(connector, identity.name());
@@ -160,7 +160,7 @@ class Login : public shell::ShellClient,
connector_->ConnectToInterface("mojo:ui", &user_access_manager_);
user_access_manager_->SetActiveUser(identity.user_id());
}
- bool AcceptConnection(shell::Connection* connection) override {
+ bool OnConnect(shell::Connection* connection) override {
connection->AddInterface<mojom::Login>(this);
return true;
}
@@ -201,7 +201,7 @@ void UI::ButtonPressed(views::Button* sender, const ui::Event& event) {
} // namespace
-shell::ShellClient* CreateLogin() {
+shell::Service* CreateLogin() {
return new Login;
}
« no previous file with comments | « mash/login/login.h ('k') | mash/quick_launch/quick_launch_application.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698