Chrome OS: Support changing user type.

This CL enables changing user type. If user_id token suggests that
user type has changed (so that it is possible for Regular <-> Child
transition only because of the API), |User| type will be updated
immediately, |Profile| child flag will be changed in
InitProfileUserPrefs(), and profile entry will be removed from
profile_info cache to ensure cache is fully reinitialized.

Bug: 811541
Change-Id: Icc0719d66058d951697937e9b36dcb4155b95908
Reviewed-on: https://chromium-review.googlesource.com/959743
Commit-Queue: Alexander Alekseev <[email protected]>
Reviewed-by: Mihai Sardarescu <[email protected]>
Reviewed-by: Xiyuan Xia <[email protected]>
Reviewed-by: Achuith Bhandarkar <[email protected]>
Cr-Commit-Position: refs/heads/master@{#543194}
5 files changed