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

Unified Diff: chromeos/dbus/fake_session_manager_client.cc

Issue 2714493002: Load DeviceLocalAccount policy and DeviceSettings immediately on restore after Chrome crash. (Closed)
Patch Set: add flag to correctly process LoadImmediately() call Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chromeos/dbus/fake_session_manager_client.cc
diff --git a/chromeos/dbus/fake_session_manager_client.cc b/chromeos/dbus/fake_session_manager_client.cc
index 5cc0066993b5bb057dabf2bc36887fbe31e0aeb7..d0355fc326df9333cf6da6a3a81bd1f4998777d2 100644
--- a/chromeos/dbus/fake_session_manager_client.cc
+++ b/chromeos/dbus/fake_session_manager_client.cc
@@ -98,6 +98,10 @@ void FakeSessionManagerClient::RetrieveDevicePolicy(
FROM_HERE, base::Bind(callback, device_policy_));
}
+std::string FakeSessionManagerClient::BlockingRetrieveDevicePolicy() {
+ return device_policy_;
+}
+
void FakeSessionManagerClient::RetrievePolicyForUser(
const cryptohome::Identification& cryptohome_id,
const RetrievePolicyCallback& callback) {
@@ -118,6 +122,11 @@ void FakeSessionManagerClient::RetrieveDeviceLocalAccountPolicy(
base::Bind(callback, device_local_account_policy_[account_id]));
}
+std::string FakeSessionManagerClient::BlockingRetrieveDeviceLocalAccountPolicy(
+ const std::string& account_id) {
+ return device_local_account_policy_[account_id];
+}
+
void FakeSessionManagerClient::StoreDevicePolicy(
const std::string& policy_blob,
const StorePolicyCallback& callback) {

Powered by Google App Engine
This is Rietveld 408576698