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

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

Issue 2165643004: arc: add enterprise_reporting.mojom interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 5 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 FROM_HERE, base::Bind(callback, arc_available_)); 171 FROM_HERE, base::Bind(callback, arc_available_));
172 } 172 }
173 173
174 void FakeSessionManagerClient::GetArcStartTime( 174 void FakeSessionManagerClient::GetArcStartTime(
175 const GetArcStartTimeCallback& callback) { 175 const GetArcStartTimeCallback& callback) {
176 base::ThreadTaskRunnerHandle::Get()->PostTask( 176 base::ThreadTaskRunnerHandle::Get()->PostTask(
177 FROM_HERE, base::Bind(callback, arc_available_, base::TimeTicks::Now())); 177 FROM_HERE, base::Bind(callback, arc_available_, base::TimeTicks::Now()));
178 } 178 }
179 179
180 void FakeSessionManagerClient::RemoveArcData( 180 void FakeSessionManagerClient::RemoveArcData(
181 const cryptohome::Identification& cryptohome_id) {} 181 const cryptohome::Identification& cryptohome_id,
182 const ArcCallback& callback) {
183 base::ThreadTaskRunnerHandle::Get()->PostTask(
184 FROM_HERE, base::Bind(callback, arc_available_));
185 }
182 186
183 const std::string& FakeSessionManagerClient::device_policy() const { 187 const std::string& FakeSessionManagerClient::device_policy() const {
184 return device_policy_; 188 return device_policy_;
185 } 189 }
186 190
187 void FakeSessionManagerClient::set_device_policy( 191 void FakeSessionManagerClient::set_device_policy(
188 const std::string& policy_blob) { 192 const std::string& policy_blob) {
189 device_policy_ = policy_blob; 193 device_policy_ = policy_blob;
190 } 194 }
191 195
(...skipping 22 matching lines...) Expand all
214 const std::string& account_id, 218 const std::string& account_id,
215 const std::string& policy_blob) { 219 const std::string& policy_blob) {
216 device_local_account_policy_[account_id] = policy_blob; 220 device_local_account_policy_[account_id] = policy_blob;
217 } 221 }
218 222
219 void FakeSessionManagerClient::OnPropertyChangeComplete(bool success) { 223 void FakeSessionManagerClient::OnPropertyChangeComplete(bool success) {
220 FOR_EACH_OBSERVER(Observer, observers_, PropertyChangeComplete(success)); 224 FOR_EACH_OBSERVER(Observer, observers_, PropertyChangeComplete(success));
221 } 225 }
222 226
223 } // namespace chromeos 227 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698