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

Unified Diff: services/shell/tests/connect/connect_test_class_app.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
Index: services/shell/tests/connect/connect_test_class_app.cc
diff --git a/services/shell/tests/connect/connect_test_class_app.cc b/services/shell/tests/connect/connect_test_class_app.cc
index 2cf08dd43a7822653e39a5c993b098d068733800..7b12052c49cd0062316483ff84bd11a28f00722e 100644
--- a/services/shell/tests/connect/connect_test_class_app.cc
+++ b/services/shell/tests/connect/connect_test_class_app.cc
@@ -31,9 +31,7 @@ class ConnectTestClassApp
private:
// shell::Service:
- void OnStart(Connector* connector, const Identity& identity,
- uint32_t id) override {
- connector_ = connector;
+ void OnStart(const Identity& identity) override {
identity_ = identity;
}
bool OnConnect(Connection* connection) override {
@@ -79,7 +77,6 @@ class ConnectTestClassApp
base::MessageLoop::current()->QuitWhenIdle();
}
- Connector* connector_ = nullptr;
Identity identity_;
std::set<Connection*> inbound_connections_;
mojo::BindingSet<test::mojom::ConnectTestService> bindings_;
« no previous file with comments | « services/shell/tests/connect/connect_test_app.cc ('k') | services/shell/tests/connect/connect_test_driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698