Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Issue 10207030: Asynchronously load wallpapers when user pod is selected. (Closed)

Created:
8 years, 8 months ago by bshe
Modified:
8 years, 7 months ago
CC:
chromium-reviews, sadrul, nkostylev+watch_chromium.org, ben+watch_chromium.org, arv (Not doing code reviews), stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Asynchronously load wallpapers when user pod is selected. On Alex device, loading wallpaper almost takes 1 second to complete and it blocking UI thread and increase the login time. This CL load wallpapers in worker pool to unblock Main UI thread and reduce the login time. Also, issue 124339 wants to display wallpaper in login screen when user pod is selected. This CL refactored some wallpaper code and hooked up user pod selection to wallpaper change to support it. BUG=122855 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=135641

Patch Set 1 #

Patch Set 2 : Merge to trunk #

Patch Set 3 : More clean up #

Patch Set 4 : #

Total comments: 16

Patch Set 5 : Address review #

Total comments: 1

Patch Set 6 : Nit #

Total comments: 12

Patch Set 7 : Address review #

Total comments: 2

Patch Set 8 : Remove pronouns #

Patch Set 9 : Add user wallpaper for first time logged in user and ephemeral users #

Total comments: 5

Patch Set 10 : Add TODO. #

Patch Set 11 : merge to trunk #

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : format #

Patch Set 15 : Fix test #

Patch Set 16 : #

Patch Set 17 : #

Patch Set 18 : Merge to trunk and fix some browser crashes #

Patch Set 19 : Nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+302 lines, -210 lines) Patch
M ash/accelerators/accelerator_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download
M ash/desktop_background/desktop_background_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +37 lines, -4 lines 0 comments Download
M ash/desktop_background/desktop_background_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +123 lines, -11 lines 0 comments Download
M ash/desktop_background/desktop_background_resources.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M ash/desktop_background/desktop_background_resources.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +5 lines, -7 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -2 lines 0 comments Download
A chrome/browser/chromeos/background/ash_user_wallpaper_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +21 lines, -0 lines 0 comments Download
A + chrome/browser/chromeos/background/ash_user_wallpaper_delegate.cc View 1 2 2 chunks +1 line, -25 lines 0 comments Download
D chrome/browser/chromeos/background/desktop_background_observer.h View 1 chunk +0 lines, -40 lines 0 comments Download
D chrome/browser/chromeos/background/desktop_background_observer.cc View 1 chunk +0 lines, -78 lines 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/mock_user_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/mock_user_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 chunks +34 lines, -14 lines 0 comments Download
M chrome/browser/chromeos/login/webui_login_display.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/login/webui_login_display.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/login/user_pod_row.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 10 chunks +28 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/ash/chrome_shell_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handler2.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
bshe
Hi Nikita. Could you please take a look at this CL? Thanks!
8 years, 8 months ago (2012-04-25 01:55:50 UTC) #1
Nikita (slow)
Overall looks good. Few nits and one comment on implementation that we should delay loading ...
8 years, 8 months ago (2012-04-25 16:47:47 UTC) #2
bshe
Done. Could you take another look please? Thanks! https://chromiumcodereview.appspot.com/10207030/diff/6001/ash/desktop_background/desktop_background_controller.cc File ash/desktop_background/desktop_background_controller.cc (right): https://chromiumcodereview.appspot.com/10207030/diff/6001/ash/desktop_background/desktop_background_controller.cc#newcode29 ash/desktop_background/desktop_background_controller.cc:29: wallpaper_ ...
8 years, 8 months ago (2012-04-25 23:54:43 UTC) #3
Nikita (slow)
lgtm https://chromiumcodereview.appspot.com/10207030/diff/6001/chrome/browser/resources/chromeos/login/user_pod_row.js File chrome/browser/resources/chromeos/login/user_pod_row.js (right): https://chromiumcodereview.appspot.com/10207030/diff/6001/chrome/browser/resources/chromeos/login/user_pod_row.js#newcode650 chrome/browser/resources/chromeos/login/user_pod_row.js:650: chrome.send('userSelected', [podToFocus.user.username]); On 2012/04/25 23:54:43, bshe wrote: > ...
8 years, 8 months ago (2012-04-26 17:22:03 UTC) #4
bshe
Done. Thanks for reivew! +OWNERS for owners approval +ben for ash/* +jhawkins for chrome/browser/ui/webui/* and ...
8 years, 8 months ago (2012-04-26 20:25:21 UTC) #5
James Hawkins
https://chromiumcodereview.appspot.com/10207030/diff/19001/chrome/browser/resources/chromeos/login/user_pod_row.js File chrome/browser/resources/chromeos/login/user_pod_row.js (right): https://chromiumcodereview.appspot.com/10207030/diff/19001/chrome/browser/resources/chromeos/login/user_pod_row.js#newcode11 chrome/browser/resources/chromeos/login/user_pod_row.js:11: var POD_WIDTH = 170 + 2 * (10 + ...
8 years, 8 months ago (2012-04-26 20:37:37 UTC) #6
Nikita (slow)
https://chromiumcodereview.appspot.com/10207030/diff/19001/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc File chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc (right): https://chromiumcodereview.appspot.com/10207030/diff/19001/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc#newcode761 chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc:761: if (!delegate_) On 2012/04/26 20:37:37, James Hawkins wrote: > ...
8 years, 8 months ago (2012-04-27 12:00:47 UTC) #7
James Hawkins
https://chromiumcodereview.appspot.com/10207030/diff/19001/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc File chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc (right): https://chromiumcodereview.appspot.com/10207030/diff/19001/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc#newcode761 chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc:761: if (!delegate_) On 2012/04/27 12:00:49, Nikita Kostylev wrote: > ...
8 years, 8 months ago (2012-04-27 17:14:18 UTC) #8
bshe
Done. Thanks for review! https://chromiumcodereview.appspot.com/10207030/diff/19001/chrome/browser/resources/chromeos/login/user_pod_row.js File chrome/browser/resources/chromeos/login/user_pod_row.js (right): https://chromiumcodereview.appspot.com/10207030/diff/19001/chrome/browser/resources/chromeos/login/user_pod_row.js#newcode11 chrome/browser/resources/chromeos/login/user_pod_row.js:11: var POD_WIDTH = 170 + ...
8 years, 8 months ago (2012-04-27 18:07:21 UTC) #9
James Hawkins
OK. LGTM aside from the |delegate_| situation. https://chromiumcodereview.appspot.com/10207030/diff/14026/chrome/browser/resources/chromeos/login/user_pod_row.js File chrome/browser/resources/chromeos/login/user_pod_row.js (right): https://chromiumcodereview.appspot.com/10207030/diff/14026/chrome/browser/resources/chromeos/login/user_pod_row.js#newcode473 chrome/browser/resources/chromeos/login/user_pod_row.js:473: // When ...
8 years, 8 months ago (2012-04-27 19:29:03 UTC) #10
bshe
done. Thanks! +ben ping? https://chromiumcodereview.appspot.com/10207030/diff/14026/chrome/browser/resources/chromeos/login/user_pod_row.js File chrome/browser/resources/chromeos/login/user_pod_row.js (right): https://chromiumcodereview.appspot.com/10207030/diff/14026/chrome/browser/resources/chromeos/login/user_pod_row.js#newcode473 chrome/browser/resources/chromeos/login/user_pod_row.js:473: // When moving through users ...
8 years, 7 months ago (2012-04-30 15:10:59 UTC) #11
bshe
+nikita Could you please take another look at patchset 9? chrome/browser/chromeos/login/user_manager_impl.* I found that first ...
8 years, 7 months ago (2012-04-30 22:20:04 UTC) #12
Ben Goodger (Google)
http://codereview.chromium.org/10207030/diff/31002/ash/desktop_background/desktop_background_controller.cc File ash/desktop_background/desktop_background_controller.cc (right): http://codereview.chromium.org/10207030/diff/31002/ash/desktop_background/desktop_background_controller.cc#newcode41 ash/desktop_background/desktop_background_controller.cc:41: void LoadingWallpaper() { I think you need to lock ...
8 years, 7 months ago (2012-05-01 19:40:12 UTC) #13
bshe
Thanks for review! http://codereview.chromium.org/10207030/diff/31002/ash/desktop_background/desktop_background_controller.cc File ash/desktop_background/desktop_background_controller.cc (right): http://codereview.chromium.org/10207030/diff/31002/ash/desktop_background/desktop_background_controller.cc#newcode41 ash/desktop_background/desktop_background_controller.cc:41: void LoadingWallpaper() { I thought the ...
8 years, 7 months ago (2012-05-01 20:52:02 UTC) #14
Nikita (slow)
lgtm http://codereview.chromium.org/10207030/diff/31002/ash/desktop_background/desktop_background_controller.cc File ash/desktop_background/desktop_background_controller.cc (right): http://codereview.chromium.org/10207030/diff/31002/ash/desktop_background/desktop_background_controller.cc#newcode41 ash/desktop_background/desktop_background_controller.cc:41: void LoadingWallpaper() { On 2012/05/01 20:52:02, bshe wrote: ...
8 years, 7 months ago (2012-05-02 09:22:22 UTC) #15
Ben Goodger (Google)
LGTM then.
8 years, 7 months ago (2012-05-02 22:21:35 UTC) #16
bshe
+nikita added a todo. http://codereview.chromium.org/10207030/diff/31002/chrome/browser/chromeos/login/user_manager_impl.cc File chrome/browser/chromeos/login/user_manager_impl.cc (right): http://codereview.chromium.org/10207030/diff/31002/chrome/browser/chromeos/login/user_manager_impl.cc#newcode963 chrome/browser/chromeos/login/user_manager_impl.cc:963: current_user_wallpaper_index_ = ash::GetDefaultWallpaperIndex(); On 2012/05/02 ...
8 years, 7 months ago (2012-05-03 01:01:59 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bshe@chromium.org/10207030/43002
8 years, 7 months ago (2012-05-03 01:02:22 UTC) #18
commit-bot: I haz the power
Can't apply patch for file ash/desktop_background/desktop_background_controller.cc. While running patch -p1 --forward --force; patching file ash/desktop_background/desktop_background_controller.cc ...
8 years, 7 months ago (2012-05-03 01:02:39 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bshe@chromium.org/10207030/50026
8 years, 7 months ago (2012-05-03 02:14:50 UTC) #20
commit-bot: I haz the power
Presubmit check for 10207030-50026 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 7 months ago (2012-05-03 02:15:17 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bshe@chromium.org/10207030/52026
8 years, 7 months ago (2012-05-03 02:20:10 UTC) #22
commit-bot: I haz the power
Try job failure for 10207030-52026 (retry) on linux_chromeos for step "compile" (clobber build). It's a ...
8 years, 7 months ago (2012-05-03 02:45:33 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bshe@chromium.org/10207030/65008
8 years, 7 months ago (2012-05-07 13:55:23 UTC) #24
commit-bot: I haz the power
8 years, 7 months ago (2012-05-07 15:18:59 UTC) #25
Change committed as 135641

Powered by Google App Engine
This is Rietveld 408576698