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

Unified Diff: chrome/browser/chromeos/policy/proto/chrome_device_policy.proto

Issue 2394773005: Protobuf changes to support ARC++ kiosk policy. (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/policy/proto/chrome_device_policy.proto
diff --git a/chrome/browser/chromeos/policy/proto/chrome_device_policy.proto b/chrome/browser/chromeos/policy/proto/chrome_device_policy.proto
index f1d63e626b7b536a0a8826bbc3f5ac3e501c3276..58134cbc0382a8971ca1c4a4e47529e0cbcebcae 100644
--- a/chrome/browser/chromeos/policy/proto/chrome_device_policy.proto
+++ b/chrome/browser/chromeos/policy/proto/chrome_device_policy.proto
@@ -287,6 +287,27 @@ message KioskAppInfoProto {
optional string update_url = 2;
}
+// Describes which Android application is to be launched.
+message AndroidKioskAppInfoProto {
+ // Package name (must be present).
+ // In the event this is the only field that is specified, runtime may use
Nikita (slow) 2016/10/06 12:56:54 nit: In the event > in case (of just if)
+ // PackageManager.getLaunchIntentForPackage() to start the app. See
+ // https://developer.android.com/reference/android/content/pm/PackageManager.html
+ optional string package_name = 1;
+
+ // Class name (optional). If present, class name is to be combined with
+ // package name to form a ComponentName. See
+ // https://developer.android.com/reference/android/content/ComponentName.html
+ optional string class_name = 2;
+
+ // Action (optional). The third parameter required for creating an Intent.
+ // If omitted, runtime may choose a reasonable default action
+ // (e.g. android.intent.action.MAIN).
+ // If package and action are specified, but not the class name, runtime may
+ // use PackageManager.queryIntentActivity() to find out the class name.
+ optional string action = 3;
+}
+
// Describes a single device-local account.
message DeviceLocalAccountInfoProto {
// Deprecated: Account identifier for a public session device-local account.
@@ -306,8 +327,12 @@ message DeviceLocalAccountInfoProto {
enum AccountType {
// A login-less, policy-configured browsing session.
ACCOUNT_TYPE_PUBLIC_SESSION = 0;
- // An account that serves as a container for a single full-screen app.
+ // An account that serves as a container for a single full-screen
+ // Chrome app.
ACCOUNT_TYPE_KIOSK_APP = 1;
+ // An account that serves as a container for a single full-screen
+ // Android app.
+ ACCOUNT_TYPE_KIOSK_ANDROID_APP = 2;
};
// The account type.
@@ -315,6 +340,9 @@ message DeviceLocalAccountInfoProto {
// Kiosk App parameters, relevant if |type| is ACCOUNT_TYPE_KIOSK_APP.
optional KioskAppInfoProto kiosk_app = 4;
+
+ // Kiosk App parameters, relevant if |type| is ACCOUNT_TYPE_KIOSK_ANDROID_APP
+ optional AndroidKioskAppInfoProto android_kiosk_app = 5;
}
message DeviceLocalAccountsProto {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698