| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "mojo/services/test_service/test_service_impl.h" | 5 #include "mojo/services/test_service/test_service_impl.h" |
| 6 | 6 |
| 7 #include <stdint.h> |
| 8 |
| 7 #include <utility> | 9 #include <utility> |
| 8 | 10 |
| 9 #include "base/bind.h" | 11 #include "base/bind.h" |
| 10 #include "base/i18n/time_formatting.h" | 12 #include "base/i18n/time_formatting.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 12 #include "mojo/application/public/cpp/application_impl.h" | 14 #include "mojo/application/public/cpp/application_impl.h" |
| 13 #include "mojo/services/test_service/test_service_application.h" | 15 #include "mojo/services/test_service/test_service_application.h" |
| 14 #include "mojo/services/test_service/test_time_service_impl.h" | 16 #include "mojo/services/test_service/test_time_service_impl.h" |
| 15 #include "mojo/services/test_service/tracked_service.h" | 17 #include "mojo/services/test_service/tracked_service.h" |
| 16 | 18 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 57 |
| 56 void TestServiceImpl::StartTrackingRequests( | 58 void TestServiceImpl::StartTrackingRequests( |
| 57 const mojo::Callback<void()>& callback) { | 59 const mojo::Callback<void()>& callback) { |
| 58 TestRequestTrackerPtr tracker; | 60 TestRequestTrackerPtr tracker; |
| 59 app_impl_->ConnectToService("mojo:test_request_tracker_app", &tracker); | 61 app_impl_->ConnectToService("mojo:test_request_tracker_app", &tracker); |
| 60 tracking_.reset(new TrackedService(std::move(tracker), Name_, callback)); | 62 tracking_.reset(new TrackedService(std::move(tracker), Name_, callback)); |
| 61 } | 63 } |
| 62 | 64 |
| 63 } // namespace test | 65 } // namespace test |
| 64 } // namespace mojo | 66 } // namespace mojo |
| OLD | NEW |