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

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

Issue 2359003004: Disable ACTION_BOOT_COMPLETED event for 3rd party apps. (Closed)
Patch Set: Fix Daniel's comments Created 4 years, 2 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 } 156 }
157 157
158 void FakeSessionManagerClient::CheckArcAvailability( 158 void FakeSessionManagerClient::CheckArcAvailability(
159 const ArcCallback& callback) { 159 const ArcCallback& callback) {
160 base::ThreadTaskRunnerHandle::Get()->PostTask( 160 base::ThreadTaskRunnerHandle::Get()->PostTask(
161 FROM_HERE, base::Bind(callback, arc_available_)); 161 FROM_HERE, base::Bind(callback, arc_available_));
162 } 162 }
163 163
164 void FakeSessionManagerClient::StartArcInstance( 164 void FakeSessionManagerClient::StartArcInstance(
165 const cryptohome::Identification& cryptohome_id, 165 const cryptohome::Identification& cryptohome_id,
166 bool disable_arc_boot_completed_broadcast,
Daniel Erat 2016/10/03 23:50:25 rename this too (and note that this doesn't match
xzhou 2016/10/04 00:09:55 Done.
166 const ArcCallback& callback) { 167 const ArcCallback& callback) {
167 base::ThreadTaskRunnerHandle::Get()->PostTask( 168 base::ThreadTaskRunnerHandle::Get()->PostTask(
168 FROM_HERE, base::Bind(callback, arc_available_)); 169 FROM_HERE, base::Bind(callback, arc_available_));
169 } 170 }
170 171
171 void FakeSessionManagerClient::StopArcInstance(const ArcCallback& callback) { 172 void FakeSessionManagerClient::StopArcInstance(const ArcCallback& callback) {
172 base::ThreadTaskRunnerHandle::Get()->PostTask( 173 base::ThreadTaskRunnerHandle::Get()->PostTask(
173 FROM_HERE, base::Bind(callback, arc_available_)); 174 FROM_HERE, base::Bind(callback, arc_available_));
174 } 175 }
175 176
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 const std::string& account_id, 231 const std::string& account_id,
231 const std::string& policy_blob) { 232 const std::string& policy_blob) {
232 device_local_account_policy_[account_id] = policy_blob; 233 device_local_account_policy_[account_id] = policy_blob;
233 } 234 }
234 235
235 void FakeSessionManagerClient::OnPropertyChangeComplete(bool success) { 236 void FakeSessionManagerClient::OnPropertyChangeComplete(bool success) {
236 FOR_EACH_OBSERVER(Observer, observers_, PropertyChangeComplete(success)); 237 FOR_EACH_OBSERVER(Observer, observers_, PropertyChangeComplete(success));
237 } 238 }
238 239
239 } // namespace chromeos 240 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698