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

Unified Diff: services/shell/tests/shell/target.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/shell/target.cc
diff --git a/services/shell/tests/shell/target.cc b/services/shell/tests/shell/target.cc
index 9c0c9649cb444a5a5e152746e7c766eb5a8e6371..4159489d2f3f58470dbdbc24384285dee2d6608e 100644
--- a/services/shell/tests/shell/target.cc
+++ b/services/shell/tests/shell/target.cc
@@ -23,12 +23,10 @@ class Target : 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 {
CreateInstanceTestPtr service;
- connector->ConnectToInterface("mojo:shell_unittest", &service);
- service->SetTargetID(id);
+ connector()->ConnectToInterface("mojo:shell_unittest", &service);
+ service->SetTargetIdentity(shell::mojom::Identity::From(identity));
}
DISALLOW_COPY_AND_ASSIGN(Target);
« no previous file with comments | « services/shell/tests/shell/shell_unittest.mojom ('k') | services/shell/tests/shutdown/shutdown_client_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698