OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/session_manager_client.h" | 5 #include "chromeos/dbus/session_manager_client.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/location.h" | 13 #include "base/location.h" |
14 #include "base/path_service.h" | 14 #include "base/path_service.h" |
15 #include "base/string_util.h" | 15 #include "base/strings/string_util.h" |
16 #include "base/threading/worker_pool.h" | 16 #include "base/threading/worker_pool.h" |
17 #include "chromeos/chromeos_paths.h" | 17 #include "chromeos/chromeos_paths.h" |
18 #include "chromeos/dbus/cryptohome_client.h" | 18 #include "chromeos/dbus/cryptohome_client.h" |
19 #include "dbus/bus.h" | 19 #include "dbus/bus.h" |
20 #include "dbus/message.h" | 20 #include "dbus/message.h" |
21 #include "dbus/object_path.h" | 21 #include "dbus/object_path.h" |
22 #include "dbus/object_proxy.h" | 22 #include "dbus/object_proxy.h" |
23 #include "third_party/cros_system_api/dbus/service_constants.h" | 23 #include "third_party/cros_system_api/dbus/service_constants.h" |
24 | 24 |
25 namespace chromeos { | 25 namespace chromeos { |
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 SessionManagerClient* SessionManagerClient::Create( | 624 SessionManagerClient* SessionManagerClient::Create( |
625 DBusClientImplementationType type, | 625 DBusClientImplementationType type, |
626 dbus::Bus* bus) { | 626 dbus::Bus* bus) { |
627 if (type == REAL_DBUS_CLIENT_IMPLEMENTATION) | 627 if (type == REAL_DBUS_CLIENT_IMPLEMENTATION) |
628 return new SessionManagerClientImpl(bus); | 628 return new SessionManagerClientImpl(bus); |
629 DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type); | 629 DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type); |
630 return new SessionManagerClientStubImpl(); | 630 return new SessionManagerClientStubImpl(); |
631 } | 631 } |
632 | 632 |
633 } // namespace chromeos | 633 } // namespace chromeos |
OLD | NEW |