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

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

Issue 2673813003: Emulate StartAuthPolicyService from FakeUpstartClient (Closed)
Patch Set: Created 3 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 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"
8 #include "chromeos/dbus/fake_auth_policy_client.h"
9
7 namespace chromeos { 10 namespace chromeos {
8 11
9 FakeUpstartClient::FakeUpstartClient() {} 12 FakeUpstartClient::FakeUpstartClient() {}
10 13
11 FakeUpstartClient::~FakeUpstartClient() {} 14 FakeUpstartClient::~FakeUpstartClient() {}
12 15
13 void FakeUpstartClient::Init(dbus::Bus* bus) {} 16 void FakeUpstartClient::Init(dbus::Bus* bus) {}
14 17
15 void FakeUpstartClient::StartAuthPolicyService() {} 18 void FakeUpstartClient::StartAuthPolicyService() {
19 static_cast<FakeAuthPolicyClient*>(
20 chromeos::DBusThreadManager::Get()->GetAuthPolicyClient())
hashimoto 2017/02/06 04:15:49 nit: No need to have "chromeos::". You are already
Roman Sorokin (ftl) 2017/02/06 10:30:40 Done.
21 ->Start();
22 }
16 23
17 } // namespace chromeos 24 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698