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_debug_daemon_client.h" | 5 #include "chromeos/dbus/fake_debug_daemon_client.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
14 #include "base/callback.h" | 14 #include "base/callback.h" |
15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
16 #include "base/location.h" | 16 #include "base/location.h" |
17 #include "base/single_thread_task_runner.h" | 17 #include "base/single_thread_task_runner.h" |
18 #include "base/thread_task_runner_handle.h" | 18 #include "base/threading/thread_task_runner_handle.h" |
19 #include "chromeos/chromeos_switches.h" | 19 #include "chromeos/chromeos_switches.h" |
20 #include "dbus/file_descriptor.h" | 20 #include "dbus/file_descriptor.h" |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 const char kCrOSTracingAgentName[] = "cros"; | 24 const char kCrOSTracingAgentName[] = "cros"; |
25 const char kCrOSTraceLabel[] = "systemTraceEvents"; | 25 const char kCrOSTraceLabel[] = "systemTraceEvents"; |
26 | 26 |
27 } // namespace | 27 } // namespace |
28 | 28 |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 if (!is_available) | 208 if (!is_available) |
209 return; | 209 return; |
210 | 210 |
211 std::vector<WaitForServiceToBeAvailableCallback> callbacks; | 211 std::vector<WaitForServiceToBeAvailableCallback> callbacks; |
212 callbacks.swap(pending_wait_for_service_to_be_available_callbacks_); | 212 callbacks.swap(pending_wait_for_service_to_be_available_callbacks_); |
213 for (size_t i = 0; i < callbacks.size(); ++i) | 213 for (size_t i = 0; i < callbacks.size(); ++i) |
214 callbacks[i].Run(is_available); | 214 callbacks[i].Run(is_available); |
215 } | 215 } |
216 | 216 |
217 } // namespace chromeos | 217 } // namespace chromeos |
OLD | NEW |