Index: extensions/common/manifest_handlers/kiosk_mode_info.h |
diff --git a/extensions/common/manifest_handlers/kiosk_mode_info.h b/extensions/common/manifest_handlers/kiosk_mode_info.h |
index cf02b0dbd61f0386708e523676d357a0430bbfe8..e4dec3875127fb265b0b41568bb2c208fd0ae97b 100644 |
--- a/extensions/common/manifest_handlers/kiosk_mode_info.h |
+++ b/extensions/common/manifest_handlers/kiosk_mode_info.h |
@@ -22,7 +22,8 @@ struct KioskModeInfo : public Extension::ManifestData { |
ONLY |
}; |
- explicit KioskModeInfo(KioskStatus kiosk_status); |
+ KioskModeInfo(KioskStatus kiosk_status, |
+ const std::vector<std::string>& secondary_app_ids); |
~KioskModeInfo() override; |
KioskStatus kiosk_status; |
not at google - send to devlin
2015/09/01 22:51:10
Could you move this below the static methods, and
jennyz
2015/09/02 21:42:23
Done.
|
@@ -32,6 +33,16 @@ struct KioskModeInfo : public Extension::ManifestData { |
// Whether the extension or app should only be available in kiosk mode. |
static bool IsKioskOnly(const Extension* extension); |
+ |
+ // Returns true if |extension| declares kiosk secondary apps. |
+ static bool HasSecondaryApps(const Extension* extension); |
+ |
+ // Gets the KioskModeInfo for |extension|, or NULL if none was |
+ // specified. |
+ static KioskModeInfo* Get(const Extension* extension); |
not at google - send to devlin
2015/09/01 22:51:11
Nice to put this as the first static method in the
jennyz
2015/09/02 21:42:23
Done.
|
+ |
+ // The IDs of the kiosk secondary apps. |
+ const std::vector<std::string> secondary_app_ids; |
}; |
// Parses the "kiosk_enabled" and "kiosk_only" manifest keys. |