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

Unified Diff: services/shell/tests/connect/connect_test_driver.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_driver.cc
diff --git a/services/shell/tests/connect/connect_test_driver.cc b/services/shell/tests/connect/connect_test_driver.cc
index 4d86046e004c4ad3452337f88193199b745caf79..88579201974fa02acff43a9079fb6b8f9ebf643d 100644
--- a/services/shell/tests/connect/connect_test_driver.cc
+++ b/services/shell/tests/connect/connect_test_driver.cc
@@ -31,11 +31,6 @@ class Driver : public shell::Service,
private:
// shell::Service:
- void OnStart(shell::Connector* connector,
- const shell::Identity& identity,
- uint32_t id) override {
- connector_ = connector;
- }
bool OnConnect(shell::Connection* connection) override {
connection->AddInterface<ClientProcessTest>(this);
return true;
@@ -65,12 +60,11 @@ class Driver : public shell::Service,
#endif
shell::Identity("exe:connect_test_exe",
shell::mojom::kInheritUserID),
- connector_, &process);
+ connector(), &process);
callback.Run(static_cast<int32_t>(connection->GetResult()),
shell::mojom::Identity::From(connection->GetRemoteIdentity()));
}
- shell::Connector* connector_ = nullptr;
mojo::BindingSet<ClientProcessTest> bindings_;
DISALLOW_COPY_AND_ASSIGN(Driver);
« no previous file with comments | « services/shell/tests/connect/connect_test_class_app.cc ('k') | services/shell/tests/connect/connect_test_exe.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698