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

Unified Diff: extensions/common/manifest_handlers/kiosk_mode_info.h

Issue 1301323005: Implement kiosk multiple apps feature. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove the special case for disabling external cache for kiosk mode. Created 5 years, 4 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: 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.

Powered by Google App Engine
This is Rietveld 408576698