| 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);
|
|
|