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

Unified Diff: mash/session/session.cc

Issue 1882423004: Move shell service to toplevel shell namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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/session/session.h ('k') | mash/task_viewer/main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/session/session.cc
diff --git a/mash/session/session.cc b/mash/session/session.cc
index 25451dcee1dad8436472628234deb8d316c4b308..daae5190dd7b15b4998787942cd3014041977989 100644
--- a/mash/session/session.cc
+++ b/mash/session/session.cc
@@ -27,8 +27,8 @@ namespace session {
Session::Session() : connector_(nullptr), screen_locked_(false) {}
Session::~Session() {}
-void Session::Initialize(mojo::Connector* connector,
- const mojo::Identity& identity,
+void Session::Initialize(shell::Connector* connector,
+ const shell::Identity& identity,
uint32_t id) {
connector_ = connector;
StartBrowserDriver();
@@ -37,7 +37,7 @@ void Session::Initialize(mojo::Connector* connector,
StartQuickLaunch();
}
-bool Session::AcceptConnection(mojo::Connection* connection) {
+bool Session::AcceptConnection(shell::Connection* connection) {
connection->AddInterface<mojom::Session>(this);
return true;
}
@@ -85,7 +85,7 @@ void Session::UnlockScreen() {
StopScreenlock();
}
-void Session::Create(mojo::Connection* connection,
+void Session::Create(shell::Connection* connection,
mojom::SessionRequest request) {
bindings_.AddBinding(this, std::move(request));
}
@@ -135,7 +135,7 @@ void Session::StartRestartableService(
const base::Closure& restart_callback) {
// TODO(beng): This would be the place to insert logic that counted restarts
// to avoid infinite crash-restart loops.
- std::unique_ptr<mojo::Connection> connection = connector_->Connect(url);
+ std::unique_ptr<shell::Connection> connection = connector_->Connect(url);
// Note: |connection| may be null if we've lost our connection to the shell.
if (connection) {
connection->SetConnectionLostClosure(
« no previous file with comments | « mash/session/session.h ('k') | mash/task_viewer/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698