Change Picture: Add support for new image sets

Desktop / Chromium - Steven Bennetts [chromium.org] - 27 July 2017 11:08 EDT

This CL includes support for author credits for older default images and generalizes the default_user_images code so that additional images can be easily added.

Bug: 730031 TBR: pam@chromium.org for c/b/chromeos/login/supervised/ Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation Change-Id: I0de2e4e132dd7dbdeb2c2c3ef9a91c54e90fdb0b Reviewed-on: https://chromium-review.googlesource.com/576567 Commit-Queue: David Reveman

272072a Change Picture: Add support for new image sets
.../supervised/supervised_user_creation_screen.cc | 4 +-
.../login/users/avatar/user_image_manager_impl.cc | 5 +-
.../login/users/avatar/user_image_sync_observer.cc | 3 +-
.../default_user_image/default_user_images.cc | 114 ++++++++++++++-------
.../users/default_user_image/default_user_images.h | 31 +++---
.../settings/people_page/change_picture.html | 3 +-
.../settings/people_page/change_picture.js | 56 +++++++---
.../people_page/change_picture_browser_proxy.js | 7 +-
.../legacy/supervised_user_sync_service.cc | 6 +-
.../supervised_user_creation_screen_handler.cc | 2 +-
.../chromeos/login/user_image_screen_handler.cc | 2 +-
.../chromeos/change_picture_options_handler.cc | 25 +----
.../settings/chromeos/change_picture_handler.cc | 37 ++++---
.../settings/chromeos/change_picture_handler.h | 8 +-
.../settings/people_page_change_picture_test.js | 74 +++++++++++--
.../chromeos/cr_picture/cr_picture_list.html | 4 +-
.../chromeos/cr_picture/cr_picture_list.js | 20 +++-
.../chromeos/cr_picture/cr_picture_types.js | 1 +
18 files changed, 259 insertions(+), 143 deletions(-)

Upstream: git.chromium.org


  • Share