Index: chrome/browser/policy/device_policy_cache.cc |
diff --git a/chrome/browser/policy/device_policy_cache.cc b/chrome/browser/policy/device_policy_cache.cc |
index bb9f5339146baade3d10c68e1751dbd27db7f0dd..de6894034aff2f0dadfeccda9aef1f49c528017c 100644 |
--- a/chrome/browser/policy/device_policy_cache.cc |
+++ b/chrome/browser/policy/device_policy_cache.cc |
@@ -11,7 +11,6 @@ |
#include "base/values.h" |
#include "chrome/browser/chromeos/cros_settings_names.h" |
#include "chrome/browser/chromeos/login/ownership_service.h" |
-#include "chrome/browser/chromeos/login/signed_settings_helper.h" |
#include "chrome/browser/chromeos/user_cros_settings_provider.h" |
#include "chrome/browser/policy/configuration_policy_pref_store.h" |
#include "chrome/browser/policy/device_policy_identity_strategy.h" |
@@ -181,6 +180,10 @@ void DevicePolicyCache::SetUnmanaged() { |
// This is not supported for DevicePolicyCache. |
} |
+bool DevicePolicyCache::IsReady() { |
+ return initialization_complete() || !starting_up_; |
+} |
+ |
void DevicePolicyCache::OnRetrievePolicyCompleted( |
chromeos::SignedSettings::ReturnCode code, |
const em::PolicyFetchResponse& policy) { |