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

Unified Diff: mojo/services/test_service/test_time_service_impl.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_time_service_impl.h
diff --git a/mojo/services/test_service/test_time_service_impl.h b/mojo/services/test_service/test_time_service_impl.h
index 666716b0133b380af710ce8380e8e5c2afa7ea42..ead689962951c6d3847b5a772ddfd7113b8e8d85 100644
--- a/mojo/services/test_service/test_time_service_impl.h
+++ b/mojo/services/test_service/test_time_service_impl.h
@@ -16,7 +16,7 @@
namespace mojo {
class ApplicationConnection;
-class ApplicationImpl;
+class Shell;
namespace test {
@@ -24,8 +24,7 @@ class TrackedService;
class TestTimeServiceImpl : public TestTimeService {
public:
- TestTimeServiceImpl(ApplicationImpl* app_impl,
- InterfaceRequest<TestTimeService> request);
+ TestTimeServiceImpl(Shell* shell, InterfaceRequest<TestTimeService> request);
~TestTimeServiceImpl() override;
// |TestTimeService| methods:
@@ -34,7 +33,7 @@ class TestTimeServiceImpl : public TestTimeService {
void StartTrackingRequests(const mojo::Callback<void()>& callback) override;
private:
- ApplicationImpl* app_impl_;
+ Shell* shell_;
scoped_ptr<TrackedService> tracking_;
StrongBinding<TestTimeService> binding_;
MOJO_DISALLOW_COPY_AND_ASSIGN(TestTimeServiceImpl);
« no previous file with comments | « mojo/services/test_service/test_service_impl.cc ('k') | mojo/services/test_service/test_time_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698