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

Unified Diff: chrome/browser/chromeos/policy/device_status_collector.h

Issue 907323002: Implemented DeviceStatusCollector::GetDeviceSessionStatus() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/policy/device_status_collector.h
diff --git a/chrome/browser/chromeos/policy/device_status_collector.h b/chrome/browser/chromeos/policy/device_status_collector.h
index f4b25663f2861ae4688ab8813c8fde9d00634fc8..ca13dd553994a1f6f43917e3ef73a0117f325184 100644
--- a/chrome/browser/chromeos/policy/device_status_collector.h
+++ b/chrome/browser/chromeos/policy/device_status_collector.h
@@ -111,6 +111,9 @@ class DeviceStatusCollector {
// can be mocked.
virtual std::vector<double> GetPerProcessCPUUsage();
+ // Gets the version of the passed app. Virtual to allow mocking.
+ virtual std::string GetAppVersion(std::string app_id);
bartfab (slow) 2015/02/11 17:28:43 Nit: Pass |app_id| by const ref.
Andrew T Wilson (Slow) 2015/02/12 15:15:39 Done.
+
// The number of days in the past to store device activity.
// This is kept in case device status uploads fail for a number of days.
unsigned int max_stored_past_activity_days_;
@@ -235,6 +238,7 @@ class DeviceStatusCollector {
bool report_network_interfaces_;
bool report_users_;
bool report_hardware_status_;
+ bool report_session_status_;
scoped_ptr<chromeos::CrosSettings::ObserverSubscription>
version_info_subscription_;
@@ -250,6 +254,8 @@ class DeviceStatusCollector {
users_subscription_;
scoped_ptr<chromeos::CrosSettings::ObserverSubscription>
hardware_status_subscription_;
+ scoped_ptr<chromeos::CrosSettings::ObserverSubscription>
+ session_status_subscription_;
base::WeakPtrFactory<DeviceStatusCollector> weak_factory_;

Powered by Google App Engine
This is Rietveld 408576698