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

Unified Diff: mojo/services/test_service/test_service_application.h

Issue 1674903003: Extract shell methods from ApplicationImpl into a base class, and pass this to Initialize() instead. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojom
Patch Set: . Created 4 years, 10 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: mojo/services/test_service/test_service_application.h
diff --git a/mojo/services/test_service/test_service_application.h b/mojo/services/test_service/test_service_application.h
index 0d3395096770990a350a135a79ec0764fdd0eff0..e4a527a59827d15dc376599b2d6e03b8ba733c8b 100644
--- a/mojo/services/test_service/test_service_application.h
+++ b/mojo/services/test_service/test_service_application.h
@@ -23,9 +23,8 @@ class TestServiceApplication : public ApplicationDelegate,
TestServiceApplication();
~TestServiceApplication() override;
- void Initialize(ApplicationImpl* app) override;
-
// ApplicationDelegate implementation.
+ void Initialize(Shell* shell, const std::string& url, uint32_t id) override;
bool AcceptConnection(ApplicationConnection* connection) override;
// InterfaceFactory<TestService> implementation.
@@ -41,7 +40,7 @@ class TestServiceApplication : public ApplicationDelegate,
private:
int ref_count_;
- ApplicationImpl* app_impl_;
+ Shell* shell_;
MOJO_DISALLOW_COPY_AND_ASSIGN(TestServiceApplication);
};
« no previous file with comments | « mojo/services/test_service/test_request_tracker_application.cc ('k') | mojo/services/test_service/test_service_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698