Apps can need to know certain details about their session and or device that currently are being provided from onLaunched (https://developer.chrome.com/apps/app_runtime#event-onLaunched). Some examples are is kiosk mode status, play store status, etc.
Having these available from onLaunched is an issue for several reasons,
a.) Some of these keys can only be shown to certain apps for security reasons, hence it is complicated to only add them for some apps.
b.) Some apps don't get an onLaunched at all (demo app launched from public sessions)
c.) The info can be missing/incorrect for certain apps - for example secondary apps launched by a primary kiosk app, will not have this key set correctly.
To fix this, we are adding the following properties to chromeosInfoPrivate (note: this will be renamed to chromeosInfo and will be available to all kiosk apps with crbug.com/629931).
. sessionType ("kiosk", "public session", "normal")
. playStoreStatus ("not available", "available", "enabled")
These will be properties that will be retrievable by using the chromeosInfo[Private].get() call.
Comment 1 by st...@chromium.org
, Sep 6 2016