Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(299)

Side by Side Diff: services/resource_coordinator/coordination_unit/coordination_unit_impl.cc

Issue 2892443002: [GRC] Process Coordination Unit support for Global Resource Controller (Closed)
Patch Set: Remove unused headers and use forward declarations Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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;
oystein (OOO til 10th of July) 2017/05/17 23:06:06 -1.0 to match types.
matthalp 2017/05/18 16:13:45 Done.
222 }
223
220 } // namespace resource_coordinator 224 } // namespace resource_coordinator
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698