| 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 <map> | 7 #include <map> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | |
| 10 | 9 |
| 11 #include "base/bind.h" | 10 #include "base/bind.h" |
| 12 #include "base/callback.h" | 11 #include "base/callback.h" |
| 13 #include "base/command_line.h" | 12 #include "base/command_line.h" |
| 14 #include "base/location.h" | 13 #include "base/location.h" |
| 15 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
| 16 #include "chromeos/chromeos_switches.h" | 15 #include "chromeos/chromeos_switches.h" |
| 17 | 16 |
| 18 namespace chromeos { | 17 namespace chromeos { |
| 19 | 18 |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 if (!is_available) | 169 if (!is_available) |
| 171 return; | 170 return; |
| 172 | 171 |
| 173 std::vector<WaitForServiceToBeAvailableCallback> callbacks; | 172 std::vector<WaitForServiceToBeAvailableCallback> callbacks; |
| 174 callbacks.swap(pending_wait_for_service_to_be_available_callbacks_); | 173 callbacks.swap(pending_wait_for_service_to_be_available_callbacks_); |
| 175 for (size_t i = 0; i < callbacks.size(); ++i) | 174 for (size_t i = 0; i < callbacks.size(); ++i) |
| 176 callbacks[i].Run(is_available); | 175 callbacks[i].Run(is_available); |
| 177 } | 176 } |
| 178 | 177 |
| 179 } // namespace chromeos | 178 } // namespace chromeos |
| OLD | NEW |