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

Side by Side Diff: mojo/services/test_service/test_service_impl.cc

Issue 581273003: Make mojo/services pass in "gn check" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ui
Patch Set: no brackets Created 6 years, 3 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 unified diff | Download patch
« no previous file with comments | « mojo/services/test_service/BUILD.gn ('k') | mojo/services/view_manager/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "base/bind.h" 7 #include "base/bind.h"
8 #include "base/i18n/time_formatting.h" 8 #include "base/i18n/time_formatting.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "mojo/public/cpp/application/application_connection.h" 10 #include "mojo/public/cpp/application/application_connection.h"
11 #include "mojo/services/test_service/test_request_tracker_client_impl.h" 11 #include "mojo/services/test_service/test_request_tracker_client_impl.h"
12 #include "mojo/services/test_service/test_request_tracker_impl.h"
13 #include "mojo/services/test_service/test_service_application.h" 12 #include "mojo/services/test_service/test_service_application.h"
14 #include "mojo/services/test_service/test_time_service_impl.h" 13 #include "mojo/services/test_service/test_time_service_impl.h"
15 #include "url/gurl.h"
16 14
17 namespace mojo { 15 namespace mojo {
18 namespace test { 16 namespace test {
19 17
20 TestServiceImpl::TestServiceImpl(ApplicationConnection* connection, 18 TestServiceImpl::TestServiceImpl(ApplicationConnection* connection,
21 TestServiceApplication* application) 19 TestServiceApplication* application)
22 : application_(application), connection_(connection) { 20 : application_(application), connection_(connection) {
23 } 21 }
24 22
25 TestServiceImpl::~TestServiceImpl() { 23 TestServiceImpl::~TestServiceImpl() {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 const mojo::Callback<void()>& callback) { 58 const mojo::Callback<void()>& callback) {
61 TestRequestTrackerPtr tracker; 59 TestRequestTrackerPtr tracker;
62 connection_->ConnectToService( 60 connection_->ConnectToService(
63 "mojo:mojo_test_request_tracker_app", &tracker); 61 "mojo:mojo_test_request_tracker_app", &tracker);
64 tracking_.reset( 62 tracking_.reset(
65 new TestRequestTrackerClientImpl(tracker.Pass(), Name_, callback)); 63 new TestRequestTrackerClientImpl(tracker.Pass(), Name_, callback));
66 } 64 }
67 65
68 } // namespace test 66 } // namespace test
69 } // namespace mojo 67 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/test_service/BUILD.gn ('k') | mojo/services/view_manager/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698