OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_shill_profile_client.h" | 5 #include "chromeos/dbus/fake_shill_profile_client.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
11 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
12 #include "base/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "chromeos/dbus/dbus_thread_manager.h" | 14 #include "chromeos/dbus/dbus_thread_manager.h" |
15 #include "chromeos/dbus/shill_property_changed_observer.h" | 15 #include "chromeos/dbus/shill_property_changed_observer.h" |
16 #include "chromeos/dbus/shill_service_client.h" | 16 #include "chromeos/dbus/shill_service_client.h" |
17 #include "dbus/bus.h" | 17 #include "dbus/bus.h" |
18 #include "dbus/message.h" | 18 #include "dbus/message.h" |
19 #include "dbus/object_path.h" | 19 #include "dbus/object_path.h" |
20 #include "dbus/values_util.h" | 20 #include "dbus/values_util.h" |
21 #include "third_party/cros_system_api/dbus/service_constants.h" | 21 #include "third_party/cros_system_api/dbus/service_constants.h" |
22 | 22 |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 if (found == profiles_.end()) { | 250 if (found == profiles_.end()) { |
251 if (!error_callback.is_null()) | 251 if (!error_callback.is_null()) |
252 error_callback.Run("Error.InvalidProfile", "Invalid profile"); | 252 error_callback.Run("Error.InvalidProfile", "Invalid profile"); |
253 return NULL; | 253 return NULL; |
254 } | 254 } |
255 | 255 |
256 return found->second; | 256 return found->second; |
257 } | 257 } |
258 | 258 |
259 } // namespace chromeos | 259 } // namespace chromeos |
OLD | NEW |