OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "services/resource_coordinator/coordination_unit/coordination_unit_impl
.h" | 5 #include "services/resource_coordinator/coordination_unit/coordination_unit_impl
.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 policy_callback_ = std::move(callback); | 210 policy_callback_ = std::move(callback); |
211 | 211 |
212 RecalcCoordinationPolicy(); | 212 RecalcCoordinationPolicy(); |
213 } | 213 } |
214 | 214 |
215 void CoordinationUnitImpl::UnregisterCoordinationPolicyCallback() { | 215 void CoordinationUnitImpl::UnregisterCoordinationPolicyCallback() { |
216 policy_callback_.reset(); | 216 policy_callback_.reset(); |
217 current_policy_.reset(); | 217 current_policy_.reset(); |
218 } | 218 } |
219 | 219 |
| 220 double CoordinationUnitImpl::GetCPUUsageForTesting() { |
| 221 return -1.0; |
| 222 } |
| 223 |
220 } // namespace resource_coordinator | 224 } // namespace resource_coordinator |
OLD | NEW |