Remembering the order of running applications for different users in multi profile mode
In multi profile mode we share the shelf view / windows between all users. As such we have to save and restore the shelf icon positions when switching users. Pinned applications are automatically handled with the given sync data. The order of running applications does not get synced and therefore does not get properly restored to the previous state when switching between users.
This CL does remember the order of running (and not pinned) applications and restores them when switching back to the user in question. Applications which get closed while the user is "invisible" will properly disappear and applications which automatically start in the background will be appended at the end of the list of running applications.
BUG=309029
TEST=unit tests
Review URL: https://codereview.chromium.org/
132403006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@244921 0039d316-1c4b-4281-b951-d872f2087c98