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

Unified Diff: services/ui/test_wm/test_wm.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 | « services/ui/service.cc ('k') | services/ui/ws/window_tree_client_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/test_wm/test_wm.cc
diff --git a/services/ui/test_wm/test_wm.cc b/services/ui/test_wm/test_wm.cc
index 98d96d8cf44c2ff2816c42fd448ba5ede89bd128..0008ebeeb8555f7d4bb314598ff83707c41ef329 100644
--- a/services/ui/test_wm/test_wm.cc
+++ b/services/ui/test_wm/test_wm.cc
@@ -6,7 +6,7 @@
#include "mojo/public/cpp/bindings/binding.h"
#include "services/shell/public/cpp/application_runner.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/ui/public/cpp/window.h"
#include "services/ui/public/cpp/window_manager_delegate.h"
#include "services/ui/public/cpp/window_tree_client.h"
@@ -17,7 +17,7 @@
namespace ui {
namespace test {
-class TestWM : public shell::ShellClient,
+class TestWM : public shell::Service,
public ui::WindowTreeClientDelegate,
public ui::WindowManagerDelegate {
public:
@@ -25,14 +25,14 @@ class TestWM : public shell::ShellClient,
~TestWM() override { delete window_tree_client_; }
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 {
window_tree_client_ = new ui::WindowTreeClient(this, this, nullptr);
window_tree_client_->ConnectAsWindowManager(connector);
}
- bool AcceptConnection(shell::Connection* connection) override {
+ bool OnConnect(shell::Connection* connection) override {
return true;
}
« no previous file with comments | « services/ui/service.cc ('k') | services/ui/ws/window_tree_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698