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

Unified Diff: chrome/browser/policy/cloud_policy_data_store.cc

Issue 8702009: Add device status reports to policy requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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/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);

Powered by Google App Engine
This is Rietveld 408576698