Reset avatar image when the avatar policy becomes unset
commitfe117bb2d7fe3e5cbf880a7b8cda6d66a716b4e9
authorbartfab@chromium.org <bartfab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 6 Jun 2014 01:14:51 +0000 (6 01:14 +0000)
committerbartfab@chromium.org <bartfab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 6 Jun 2014 01:14:51 +0000 (6 01:14 +0000)
treef2621c6b6a29193269a45b34662e048049ecfc83
parent93468688c58fd12039096bedb9c27fc95e8987fa
Reset avatar image when the avatar policy becomes unset

When the avatar policy is cleared, the user can pick an avatar image
again. Until the user does this, Chrome has two options:
1) keep using the image that had most recently been set through policy
2) revert to a default image

Chrome's current behavior is (1). This CL changes it to (2), which may be
easier to understand for users and is consistent with the behavior of the
wallpaper policy.

BUG=380422
TEST=Updated browser test

Review URL: https://codereview.chromium.org/315213002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275289 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/chromeos/login/users/avatar/user_image_manager_browsertest.cc
chrome/browser/chromeos/login/users/avatar/user_image_manager_impl.cc