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

Unified Diff: chrome/common/extensions/api/autotest_private.idl

Issue 2801173002: arc: Provide API to control Play Store state from autotests (Closed)
Patch Set: return boolean for SetArcPlayStoreEnabledForProfile Created 3 years, 8 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/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..8caacb2cebde91b99e073b0086c5c4cf1f0de600 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 {
+ // Whether the Play Store allowed for the current user?
Devlin 2017/04/14 14:34:24 nit: Replace '?' with a '.' (we want to avoid "que
khmel 2017/04/14 15:39:19 Done.
+ boolean allowed;
+ // Is the Play Store currently enabled?
Devlin 2017/04/14 14:34:24 For this one, too, s/Is/Whether, s/?/. Whether the
khmel 2017/04/14 15:39:19 Done.
+ boolean? enabled;
+ // Is the Play Store managed by policy?
+ boolean? managed;
Devlin 2017/04/14 14:34:24 ditto: Whether the Play Store is managed by policy
khmel 2017/04/14 15:39:19 Done.
+ };
+ 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);
};
};

Powered by Google App Engine
This is Rietveld 408576698