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

Issue 110463004: ash: Fix DesktopBackgroundController getting stuck. (Closed)

Created:
6 years, 12 months ago by Daniel Erat
Modified:
6 years, 12 months ago
Reviewers:
DaveMoore
CC:
chromium-reviews, kalyank, sadrul, ben+ash_chromium.org, Denis Kuznetsov (DE-MUC), bshe
Visibility:
Public.

Description

ash: Fix DesktopBackgroundController getting stuck. Fix an issue where DesktopBackgroundController gets confused and stops switching wallpapers. The following sequence of events triggers the bug: a) Default wallpaper is requested and starts getting loaded from disk. b) Before default wallpaper has been loaded, custom wallpaper is requested. c) Default wallpaper is requested again. At b), the default wallpaper load operation is canceled but the WallpaperLoader object is retained. At c), DesktopBackgroundController incorrectly sees the still-present WallpaperLoader and believes that the default wallpaper is still being loaded. This leaves DesktopBackgroundController in a state where it never switches back to the default wallpaper. The fix is to disregard the existing WallpaperLoader if it has already been canceled. BUG=327443 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=242579

Patch Set 1 #

Total comments: 4

Patch Set 2 : update a comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -40 lines) Patch
M ash/desktop_background/desktop_background_controller.h View 1 2 chunks +4 lines, -3 lines 0 comments Download
M ash/desktop_background/desktop_background_controller.cc View 9 chunks +41 lines, -37 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Daniel Erat
https://codereview.chromium.org/110463004/diff/1/ash/desktop_background/desktop_background_controller.cc File ash/desktop_background/desktop_background_controller.cc (left): https://codereview.chromium.org/110463004/diff/1/ash/desktop_background/desktop_background_controller.cc#oldcode73 ash/desktop_background/desktop_background_controller.cc:73: static void LoadOnWorkerPoolThread(scoped_refptr<WallpaperLoader> loader) { i don't know why ...
6 years, 12 months ago (2013-12-26 20:52:00 UTC) #1
DaveMoore
lgtm https://codereview.chromium.org/110463004/diff/1/ash/desktop_background/desktop_background_controller.h File ash/desktop_background/desktop_background_controller.h (right): https://codereview.chromium.org/110463004/diff/1/ash/desktop_background/desktop_background_controller.h#newcode112 ash/desktop_background/desktop_background_controller.h:112: void CancelDefaultWallpaperLoader(); Nit: Is the comment still correct?
6 years, 12 months ago (2013-12-26 21:00:35 UTC) #2
Daniel Erat
https://codereview.chromium.org/110463004/diff/1/ash/desktop_background/desktop_background_controller.h File ash/desktop_background/desktop_background_controller.h (right): https://codereview.chromium.org/110463004/diff/1/ash/desktop_background/desktop_background_controller.h#newcode112 ash/desktop_background/desktop_background_controller.h:112: void CancelDefaultWallpaperLoader(); On 2013/12/26 21:00:35, DaveMoore wrote: > Nit: ...
6 years, 12 months ago (2013-12-26 21:01:51 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/110463004/70001
6 years, 12 months ago (2013-12-26 21:04:26 UTC) #4
commit-bot: I haz the power
6 years, 12 months ago (2013-12-27 00:21:42 UTC) #5
Message was sent while issue was closed.
Change committed as 242579

Powered by Google App Engine
This is Rietveld 408576698