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

Issue 210313004: ABANDONED: ash: Support changing default wallpaper at runtime. (Closed)

Created:
6 years, 9 months ago by Daniel Erat
Modified:
6 years, 8 months ago
Reviewers:
Alexander Alekseev
CC:
chromium-reviews, kalyank, sadrul, ben+ash_chromium.org
Visibility:
Public.

Description

ash: Support changing default wallpaper at runtime. Make DesktopBackgroundController permit the default wallpaper images to be changed at runtime. BUG=348136

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -61 lines) Patch
M ash/desktop_background/desktop_background_controller.h View 6 chunks +34 lines, -11 lines 0 comments Download
M ash/desktop_background/desktop_background_controller.cc View 5 chunks +74 lines, -32 lines 4 comments Download
M ash/desktop_background/desktop_background_controller_unittest.cc View 4 chunks +9 lines, -18 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Alexander Alekseev
https://codereview.chromium.org/210313004/diff/1/ash/desktop_background/desktop_background_controller.cc File ash/desktop_background/desktop_background_controller.cc (right): https://codereview.chromium.org/210313004/diff/1/ash/desktop_background/desktop_background_controller.cc#newcode230 ash/desktop_background/desktop_background_controller.cc:230: GetDefaultWallpaperInfo(is_guest, &old_path, &old_layout, NULL, NULL); This call returns "Future ...
6 years, 9 months ago (2014-03-24 23:04:12 UTC) #1
Daniel Erat
https://codereview.chromium.org/210313004/diff/1/ash/desktop_background/desktop_background_controller.cc File ash/desktop_background/desktop_background_controller.cc (right): https://codereview.chromium.org/210313004/diff/1/ash/desktop_background/desktop_background_controller.cc#newcode230 ash/desktop_background/desktop_background_controller.cc:230: GetDefaultWallpaperInfo(is_guest, &old_path, &old_layout, NULL, NULL); On 2014/03/24 23:04:12, alemate ...
6 years, 9 months ago (2014-03-24 23:12:05 UTC) #2
Alexander Alekseev
6 years, 9 months ago (2014-03-25 00:20:28 UTC) #3
On 2014/03/24 23:12:05, Daniel Erat wrote:
>
https://codereview.chromium.org/210313004/diff/1/ash/desktop_background/deskt...
> File ash/desktop_background/desktop_background_controller.cc (right):
> 
>
https://codereview.chromium.org/210313004/diff/1/ash/desktop_background/deskt...
> ash/desktop_background/desktop_background_controller.cc:230:
> GetDefaultWallpaperInfo(is_guest, &old_path, &old_layout, NULL, NULL);
> On 2014/03/24 23:04:12, alemate wrote:
> > This call returns "Future wallpaper parameters, that would be applied if a
> call
> > to SetDefaultWallpaper() is done".
> > First of all, it depends on "flacky" GetAppropriateResolution() (because
> another
> > monitor could be attached and electrical connector could be unstable).
> > 
> 
> "first of all" -> is this the only concern?
> 
> is your concern that there could be a previously-scheduled call to
> DesktopBackgroundController::UpdateWallpaper() still pending?

Yes.

>  we could cache the
> current small/large status and use that in GetDefaultWallpaperInfo() instead
of
> re-checking the display size there.
This would be more correct.
 
>
https://codereview.chromium.org/210313004/diff/1/ash/desktop_background/deskt...
> ash/desktop_background/desktop_background_controller.cc:233:
> large_default_wallpaper_path_ = large_path;
> On 2014/03/24 23:04:12, alemate wrote:
> > if (is_guest) {
> > ...
> > } else {
> > ...
> > }
> > 
> > ?
> 
> do you need to override the default guest wallpaper? we don't allow it to be
> customized by OEMs currently, so i was planning to make this method just be
used
> to change the non-guest default wallpaper.

I think there could be only output parameter "is_guest", because the caller has
no information of the currently active wallpaper (and pending request).
But you've specified it as input, so I decided that you meant to make universal
method to allow modification of any default wallpaper for some reason.

Powered by Google App Engine
This is Rietveld 408576698