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

Unified Diff: services/ui/test_wm/test_wm.cc

Issue 2179023004: Make Service own ServiceContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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/user/user_shell_client.h » ('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 75b632fb5f7241626e92576f041d0e4cb8442ee4..c8cafa976fa9bcc152543de1258ece4f2dc3017d 100644
--- a/services/ui/test_wm/test_wm.cc
+++ b/services/ui/test_wm/test_wm.cc
@@ -27,14 +27,9 @@ class TestWM : public shell::Service,
private:
// shell::Service:
- void OnStart(shell::Connector* connector,
- const shell::Identity& identity,
- uint32_t id) override {
+ void OnStart(const shell::Identity& identity) override {
window_tree_client_ = new ui::WindowTreeClient(this, this, nullptr);
- window_tree_client_->ConnectAsWindowManager(connector);
- }
- bool OnConnect(shell::Connection* connection) override {
- return true;
+ window_tree_client_->ConnectAsWindowManager(connector());
}
// ui::WindowTreeClientDelegate:
« no previous file with comments | « services/ui/service.cc ('k') | services/user/user_shell_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698