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

Side by Side Diff: chromeos/dbus/fake_upstart_client.cc

Issue 2791983004: DBus MediaAnalyticsClient and media_perception pb. (Closed)
Patch Set: Addressing more comments. Created 3 years, 7 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "chromeos/dbus/fake_upstart_client.h" 5 #include "chromeos/dbus/fake_upstart_client.h"
6 6
7 #include "chromeos/dbus/dbus_thread_manager.h" 7 #include "chromeos/dbus/dbus_thread_manager.h"
8 #include "chromeos/dbus/fake_auth_policy_client.h" 8 #include "chromeos/dbus/fake_auth_policy_client.h"
9 9
10 namespace chromeos { 10 namespace chromeos {
(...skipping 11 matching lines...) Expand all
22 } 22 }
23 23
24 void FakeUpstartClient::RestartAuthPolicyService() { 24 void FakeUpstartClient::RestartAuthPolicyService() {
25 FakeAuthPolicyClient* authpolicy_client = static_cast<FakeAuthPolicyClient*>( 25 FakeAuthPolicyClient* authpolicy_client = static_cast<FakeAuthPolicyClient*>(
26 DBusThreadManager::Get()->GetAuthPolicyClient()); 26 DBusThreadManager::Get()->GetAuthPolicyClient());
27 DLOG_IF(WARNING, !authpolicy_client->started()) 27 DLOG_IF(WARNING, !authpolicy_client->started())
28 << "Trying to restart authpolicyd which is not started"; 28 << "Trying to restart authpolicyd which is not started";
29 authpolicy_client->set_started(true); 29 authpolicy_client->set_started(true);
30 } 30 }
31 31
32 void FakeUpstartClient::StartMediaAnalytics(const UpstartCallback& callback) {
tbarzic 2017/05/09 20:28:41 it might be useful to tailor FakeMediaAnalytics cl
Luke Sorenson 2017/05/09 22:21:25 Acknowledged. For now, going to keep them independ
tbarzic 2017/05/10 03:26:24 I'd prefer it done now, given that it would match
Luke Sorenson 2017/05/10 16:38:22 Done.
33 callback.Run(true);
34 }
35
36 void FakeUpstartClient::StopMediaAnalytics() {}
37
32 } // namespace chromeos 38 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698