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

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

Issue 2408063007: Re-sort preference update protocol between Chrome and ArcSupport. (Closed)
Patch Set: Rebase Created 4 years, 2 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 acd6bdaaf1d70cfe5b110704fa5bb27dddcc6e93..114caa99eeb23610d966b327d3efd704772d69e0 100644
--- a/chrome/browser/chromeos/arc/arc_support_host.h
+++ b/chrome/browser/chromeos/arc/arc_support_host.h
@@ -52,11 +52,25 @@ class ArcSupportHost : public extensions::NativeMessageHost,
void OnMetricsPreferenceChanged();
void OnBackupAndRestorePreferenceChanged();
void OnLocationServicePreferenceChanged();
+
+ // Utilities on preference update.
void SendMetricsMode();
void SendBackupAndRestoreMode();
void SendLocationServicesMode();
void SendOptionMode(const std::string& action_name,
const std::string& pref_name);
+
+ // Sends a preference update to the extension.
+ // The message will be
+ // {
+ // 'action': action_name,
+ // 'enabled': is_enabled,
+ // 'managed': is_managed
+ // }
+ void SendPreferenceUpdate(const std::string& action_name,
+ bool is_enabled,
+ bool is_managed);
+
void EnableMetrics(bool is_enabled);
void EnableBackupRestore(bool is_enabled);
void EnableLocationService(bool is_enabled);

Powered by Google App Engine
This is Rietveld 408576698