Clean up and simplify UserImageLoader
commit44ee5e8623422b2610332f641a3709dcd24beafe
authorbartfab@chromium.org <bartfab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 14 Nov 2013 14:14:19 +0000 (14 14:14 +0000)
committerbartfab@chromium.org <bartfab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 14 Nov 2013 14:14:19 +0000 (14 14:14 +0000)
treeaec76bd73c65434a62b24d83b4c186541e220435
parentecc3c86d06edbf64084a11dd91f67a5be9f8102f
Clean up and simplify UserImageLoader

This CL simplifies the UserImageLoader. A foreground_task_runner_ and a
background_task_runner_ are set during construction, providing well-
defined task runners for all tasks. There no longer is a need for locking
as all callbacks from the ImageDecoders arrive via the same task runner.

The CL also adds a method that processes image data already present in
memory, in preparation for policy-set avatars and wallpapers.

BUG=152957,152959,220418
TEST=Manual

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235136 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/chromeos/login/user_image_loader.cc
chrome/browser/chromeos/login/user_image_loader.h
chrome/browser/chromeos/login/user_image_manager_impl.cc
chrome/browser/chromeos/login/user_image_manager_impl.h
chrome/browser/chromeos/login/wallpaper_manager.cc