Descriptionash: 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 #
Messages
Total messages: 5 (0 generated)
|