Index: chrome/browser/policy/cloud_policy_data_store.cc |
diff --git a/chrome/browser/policy/cloud_policy_data_store.cc b/chrome/browser/policy/cloud_policy_data_store.cc |
index 1756823cc85ead890e2587442332d1d7761451e1..32b4ed0aa3362eab58121c81bc45adaf2be49025 100644 |
--- a/chrome/browser/policy/cloud_policy_data_store.cc |
+++ b/chrome/browser/policy/cloud_policy_data_store.cc |
@@ -6,6 +6,7 @@ |
#include "base/basictypes.h" |
#include "base/compiler_specific.h" |
+#include "chrome/browser/browser_process.h" |
#include "chrome/browser/policy/proto/device_management_backend.pb.h" |
#include "chrome/browser/policy/proto/device_management_constants.h" |
@@ -31,7 +32,8 @@ CloudPolicyDataStore::CloudPolicyDataStore( |
: user_affiliation_(USER_AFFILIATION_NONE), |
policy_register_type_(policy_register_type), |
policy_type_(policy_type), |
- token_cache_loaded_(false) {} |
+ token_cache_loaded_(false), |
+ device_status_reporter_(g_browser_process->local_state()) {} |
Mattias Nissler (ping if slow)
2011/11/25 14:15:19
Please pass in the reference to local state so eas
Patrick Dubroy
2011/11/29 18:01:46
Decided to leave this as-is.
|
void CloudPolicyDataStore::SetDeviceToken(const std::string& device_token, |
bool from_cache) { |
@@ -151,6 +153,11 @@ CloudPolicyDataStore::UserAffiliation |
return user_affiliation_; |
} |
+DeviceStatusReporter* |
+ CloudPolicyDataStore::device_status_reporter() { |
+ return &device_status_reporter_; |
+} |
+ |
void CloudPolicyDataStore::AddObserver( |
CloudPolicyDataStore::Observer* observer) { |
observer_list_.AddObserver(observer); |