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

Unified Diff: chrome/browser/chromeos/arc/arc_support_host.h

Issue 2235293002: arc: Support managed Arc and managed Location Service and B&R consents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2225933002_managed_BR_LOC
Patch Set: don't load ToS for managed arc, add policy indicators Created 4 years, 4 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/arc/arc_support_host.h
diff --git a/chrome/browser/chromeos/arc/arc_support_host.h b/chrome/browser/chromeos/arc/arc_support_host.h
index 9e65e0137a09d9f73ddbf43cf30b5bf53523304d..724971bd121dae144f97f8beda361830b607119e 100644
--- a/chrome/browser/chromeos/arc/arc_support_host.h
+++ b/chrome/browser/chromeos/arc/arc_support_host.h
@@ -46,7 +46,13 @@ class ArcSupportHost : public extensions::NativeMessageHost,
bool Initialize();
void OnMetricsPreferenceChanged();
+ void OnBackupAndRestorePreferenceChanged();
+ void OnLocationServicePreferenceChanged();
void SendMetricsMode();
+ void SendBackupAndRestoreMode();
+ void SendLocationServicesMode();
+ void SendOptionMode(const std::string& action_name,
+ const std::string& pref_name);
void EnableMetrics(bool is_enabled);
void EnableBackupRestore(bool is_enabled);
void EnableLocationService(bool is_enabled);
@@ -55,6 +61,8 @@ class ArcSupportHost : public extensions::NativeMessageHost,
Client* client_ = nullptr;
// Used to track metrics preference.
+ PrefChangeRegistrar pref_local_change_registrar_;
+ // Used to track backup&restore and location service preference.
PrefChangeRegistrar pref_change_registrar_;
DISALLOW_COPY_AND_ASSIGN(ArcSupportHost);

Powered by Google App Engine
This is Rietveld 408576698