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

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

Issue 1966133002: Run RemoveArcData after a user has opted out (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 4 years, 6 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 base::ThreadTaskRunnerHandle::Get()->PostTask( 168 base::ThreadTaskRunnerHandle::Get()->PostTask(
169 FROM_HERE, base::Bind(callback, arc_available_)); 169 FROM_HERE, base::Bind(callback, arc_available_));
170 } 170 }
171 171
172 void FakeSessionManagerClient::GetArcStartTime( 172 void FakeSessionManagerClient::GetArcStartTime(
173 const GetArcStartTimeCallback& callback) { 173 const GetArcStartTimeCallback& callback) {
174 base::ThreadTaskRunnerHandle::Get()->PostTask( 174 base::ThreadTaskRunnerHandle::Get()->PostTask(
175 FROM_HERE, base::Bind(callback, arc_available_, base::TimeTicks::Now())); 175 FROM_HERE, base::Bind(callback, arc_available_, base::TimeTicks::Now()));
176 } 176 }
177 177
178 void FakeSessionManagerClient::RemoveArcData(
179 const cryptohome::Identification& cryptohome_id) {}
180
178 const std::string& FakeSessionManagerClient::device_policy() const { 181 const std::string& FakeSessionManagerClient::device_policy() const {
179 return device_policy_; 182 return device_policy_;
180 } 183 }
181 184
182 void FakeSessionManagerClient::set_device_policy( 185 void FakeSessionManagerClient::set_device_policy(
183 const std::string& policy_blob) { 186 const std::string& policy_blob) {
184 device_policy_ = policy_blob; 187 device_policy_ = policy_blob;
185 } 188 }
186 189
187 const std::string& FakeSessionManagerClient::user_policy( 190 const std::string& FakeSessionManagerClient::user_policy(
(...skipping 21 matching lines...) Expand all
209 const std::string& account_id, 212 const std::string& account_id,
210 const std::string& policy_blob) { 213 const std::string& policy_blob) {
211 device_local_account_policy_[account_id] = policy_blob; 214 device_local_account_policy_[account_id] = policy_blob;
212 } 215 }
213 216
214 void FakeSessionManagerClient::OnPropertyChangeComplete(bool success) { 217 void FakeSessionManagerClient::OnPropertyChangeComplete(bool success) {
215 FOR_EACH_OBSERVER(Observer, observers_, PropertyChangeComplete(success)); 218 FOR_EACH_OBSERVER(Observer, observers_, PropertyChangeComplete(success));
216 } 219 }
217 220
218 } // namespace chromeos 221 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698