Chromium Code Reviews| Index: chrome/common/extensions/api/autotest_private.idl |
| diff --git a/chrome/common/extensions/api/autotest_private.idl b/chrome/common/extensions/api/autotest_private.idl |
| index be6901c55b7aaa7a2b81b9e86dff36032075e3b4..4d4bcc9861a3a6288ace351671afaa90f6e0ff02 100644 |
| --- a/chrome/common/extensions/api/autotest_private.idl |
| +++ b/chrome/common/extensions/api/autotest_private.idl |
| @@ -63,6 +63,18 @@ namespace autotestPrivate { |
| }; |
| callback NotificationArrayCallback = void (Notification[] notifications); |
| + dictionary PlayStoreState { |
| + // Is the Play Store allowed for the current user? |
|
Devlin
2017/04/13 21:49:52
nit: Let's phrase these as "Whether the Play Store
khmel
2017/04/13 23:02:51
Done.
|
| + boolean allowed; |
| + // Is the Play Store currently enabled? |
| + boolean? enabled; |
| + // Is the Play Store managed by policy? |
| + boolean? managed; |
| + }; |
| + callback PlayStoreStateCallback = void (PlayStoreState result); |
| + |
| + callback VoidCallback = void (); |
| + |
| interface Functions { |
| // Logout of a user session. |
| static void logout(); |
| @@ -116,5 +128,13 @@ namespace autotestPrivate { |
| // Get visible notifications on the system. |
| static void getVisibleNotifications(NotificationArrayCallback callback); |
| + |
| + // Get state of the Play Store. |
| + static void getPlayStoreState(PlayStoreStateCallback callback); |
| + |
| + // Enable/disable the Play Store. |
| + // |enabled|: if set, enable the Play Store. |
| + // |callback|: Called when the operation has completed. |
| + static void setPlayStoreEnabled(boolean enabled, VoidCallback callback); |
| }; |
| }; |