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

Side by Side Diff: chromeos/dbus/fake_session_manager_client.cc

Issue 2649133003: Remove PrioritizeArcInstance() from SessionManagerClient (Closed)
Patch Set: Created 3 years, 11 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 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_session_manager_client.h" 5 #include "chromeos/dbus/fake_session_manager_client.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 base::Bind(callback, arc_available_ 171 base::Bind(callback, arc_available_
172 ? StartArcInstanceResult::SUCCESS 172 ? StartArcInstanceResult::SUCCESS
173 : StartArcInstanceResult::UNKNOWN_ERROR)); 173 : StartArcInstanceResult::UNKNOWN_ERROR));
174 } 174 }
175 175
176 void FakeSessionManagerClient::StopArcInstance(const ArcCallback& callback) { 176 void FakeSessionManagerClient::StopArcInstance(const ArcCallback& callback) {
177 base::ThreadTaskRunnerHandle::Get()->PostTask( 177 base::ThreadTaskRunnerHandle::Get()->PostTask(
178 FROM_HERE, base::Bind(callback, arc_available_)); 178 FROM_HERE, base::Bind(callback, arc_available_));
179 } 179 }
180 180
181 void FakeSessionManagerClient::PrioritizeArcInstance(
182 const ArcCallback& callback) {
183 base::ThreadTaskRunnerHandle::Get()->PostTask(
184 FROM_HERE, base::Bind(callback, arc_available_));
185 }
186
187 void FakeSessionManagerClient::SetArcCpuRestriction( 181 void FakeSessionManagerClient::SetArcCpuRestriction(
188 login_manager::ContainerCpuRestrictionState restriction_state, 182 login_manager::ContainerCpuRestrictionState restriction_state,
189 const ArcCallback& callback) { 183 const ArcCallback& callback) {
190 base::ThreadTaskRunnerHandle::Get()->PostTask( 184 base::ThreadTaskRunnerHandle::Get()->PostTask(
191 FROM_HERE, base::Bind(callback, arc_available_)); 185 FROM_HERE, base::Bind(callback, arc_available_));
192 } 186 }
193 187
194 void FakeSessionManagerClient::EmitArcBooted() {} 188 void FakeSessionManagerClient::EmitArcBooted() {}
195 189
196 void FakeSessionManagerClient::GetArcStartTime( 190 void FakeSessionManagerClient::GetArcStartTime(
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 const std::string& policy_blob) { 237 const std::string& policy_blob) {
244 device_local_account_policy_[account_id] = policy_blob; 238 device_local_account_policy_[account_id] = policy_blob;
245 } 239 }
246 240
247 void FakeSessionManagerClient::OnPropertyChangeComplete(bool success) { 241 void FakeSessionManagerClient::OnPropertyChangeComplete(bool success) {
248 for (auto& observer : observers_) 242 for (auto& observer : observers_)
249 observer.PropertyChangeComplete(success); 243 observer.PropertyChangeComplete(success);
250 } 244 }
251 245
252 } // namespace chromeos 246 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_session_manager_client.h ('k') | chromeos/dbus/mock_session_manager_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698