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

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

Issue 8920003: Add OS and firmware version to device status reports. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Wrap #includes for ChromeOS. Created 9 years 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
« no previous file with comments | « chrome/browser/policy/cloud_policy_controller.cc ('k') | chrome/browser/policy/cloud_policy_data_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/cloud_policy_data_store.h
diff --git a/chrome/browser/policy/cloud_policy_data_store.h b/chrome/browser/policy/cloud_policy_data_store.h
index 74e60a622c54952a58395026c5e6a2d541e861c9..69e22ca5142324aa78424b6607abdeb74ff90f62 100644
--- a/chrome/browser/policy/cloud_policy_data_store.h
+++ b/chrome/browser/policy/cloud_policy_data_store.h
@@ -10,7 +10,9 @@
#include "base/memory/scoped_ptr.h"
#include "base/observer_list.h"
+#if defined(OS_CHROMEOS)
#include "chrome/browser/policy/device_status_collector.h"
+#endif
#include "chrome/browser/policy/proto/device_management_backend.pb.h"
namespace policy {
@@ -82,7 +84,11 @@ class CloudPolicyDataStore {
void set_machine_model(const std::string& machine_model);
void set_user_name(const std::string& user_name);
void set_user_affiliation(UserAffiliation user_affiliation);
+
+#if defined(OS_CHROMEOS)
void set_device_status_collector(DeviceStatusCollector* collector);
+ DeviceStatusCollector* device_status_collector();
+#endif
const std::string& device_id() const;
const std::string& device_token() const;
@@ -96,7 +102,6 @@ class CloudPolicyDataStore {
bool token_cache_loaded() const;
const std::string& user_name() const;
UserAffiliation user_affiliation() const;
- DeviceStatusCollector* device_status_collector();
void AddObserver(Observer* observer);
void RemoveObserver(Observer* observer);
@@ -130,7 +135,9 @@ class CloudPolicyDataStore {
bool token_cache_loaded_;
+#if defined(OS_CHROMEOS)
scoped_ptr<DeviceStatusCollector> device_status_collector_;
+#endif
ObserverList<Observer, true> observer_list_;
« no previous file with comments | « chrome/browser/policy/cloud_policy_controller.cc ('k') | chrome/browser/policy/cloud_policy_data_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698