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

Unified Diff: chrome/browser/chromeos/settings/device_settings_test_helper.cc

Issue 2714493002: Load DeviceLocalAccount policy and DeviceSettings immediately on restore after Chrome crash. (Closed)
Patch Set: wrap Validator in unique_ptr 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: chrome/browser/chromeos/settings/device_settings_test_helper.cc
diff --git a/chrome/browser/chromeos/settings/device_settings_test_helper.cc b/chrome/browser/chromeos/settings/device_settings_test_helper.cc
index e81af3bd9967bc5386b1d2e6efe0b172e1344b08..5084eff322736a50cfb7fda8cb88f5ae459c6f25 100644
--- a/chrome/browser/chromeos/settings/device_settings_test_helper.cc
+++ b/chrome/browser/chromeos/settings/device_settings_test_helper.cc
@@ -97,6 +97,10 @@ void DeviceSettingsTestHelper::RetrieveDevicePolicy(
device_policy_.retrieve_callbacks_.push_back(callback);
}
+std::string DeviceSettingsTestHelper::BlockingRetrieveDevicePolicy() {
+ return device_policy_.policy_blob_;
+}
+
void DeviceSettingsTestHelper::RetrieveDeviceLocalAccountPolicy(
const std::string& account_id,
const RetrievePolicyCallback& callback) {
@@ -104,6 +108,11 @@ void DeviceSettingsTestHelper::RetrieveDeviceLocalAccountPolicy(
callback);
}
+std::string DeviceSettingsTestHelper::BlockingRetrieveDeviceLocalAccountPolicy(
+ const std::string& account_id) {
+ return "";
+}
+
void DeviceSettingsTestHelper::StoreDevicePolicy(
const std::string& policy_blob,
const StorePolicyCallback& callback) {

Powered by Google App Engine
This is Rietveld 408576698