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

Issue 2413503002: Cleanup mojo Wallpaper interfaces for mash. (Closed)

Created:
4 years, 2 months ago by msw
Modified:
4 years, 2 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, elijahtaylor+arcwatch_chromium.org, alemate+watch_chromium.org, sadrul, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, michaelpg+watch-md-settings_chromium.org, hidehiko+watch_chromium.org, achuith+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, michaelpg+watch-options_chromium.org, lhchavez+watch_chromium.org, oshima+watch_chromium.org, kalyank, darin (slow to review), stevenjb+watch-md-settings_chromium.org, dbeam+watch-settings_chromium.org, davemoore+watch_chromium.org, yusukes+watch_chromium.org, rjkroege
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cleanup mojo Wallpaper interfaces for mash. Implement WallpaperController in ash::WallpaperController. Move OpenSetWallpaperPage() helper there too. Implement WallpaperManager in chromeos::WallpaperManager. Remove ChromeWallpaperManager (now in WallpaperManager). Avoid some chrome->ash->chrome OpenSetWallpaperPage hops. Add WallpaperLayout enum traits. Update some test functionality. Note: this disables the wallpaper picker on Windows. BUG=557405 TEST=No Chrome OS or Mash wallpaper regressions. R=jamescook@chromium.org,sky@chromium.org,tsepez@chromium.org,stevenjb@chromium.org,yusukes@chromium.org Committed: https://crrev.com/c691bf17a2b2fdee9c863be37134149d042787b4 Cr-Commit-Position: refs/heads/master@{#426227}

Patch Set 1 #

Patch Set 2 : Cleanup. #

Total comments: 9

Patch Set 3 : Address comments; add WallpaperController::GetWallpaper; fixing tests. #

Patch Set 4 : Add row_bytes field to skia bitmap mojo struct. #

Patch Set 5 : Cleanup. #

Patch Set 6 : Sync and rebase; do *not* use mojo in classic ash. #

Total comments: 15

Patch Set 7 : Address comments; remove GetWallpaper and test path change. #

Patch Set 8 : Sync and rebase; cleanup the SetWallpaper helper. #

Patch Set 9 : Restore WmShell::HasInstance check in SetWallpaper for unit_tests. #

Patch Set 10 : Sync and rebase. #

Patch Set 11 : Sync and rebase again... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+210 lines, -295 lines) Patch
M ash/common/mojo_interface_factory.cc View 1 2 3 4 5 6 7 8 9 4 chunks +10 lines, -3 lines 0 comments Download
M ash/common/wallpaper/wallpaper_controller.h View 1 2 3 4 5 6 5 chunks +20 lines, -2 lines 0 comments Download
M ash/common/wallpaper/wallpaper_controller.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +27 lines, -0 lines 0 comments Download
M ash/common/wallpaper/wallpaper_delegate.h View 1 chunk +0 lines, -3 lines 0 comments Download
M ash/common/wm_shell.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -4 lines 0 comments Download
M ash/default_wallpaper_delegate.h View 1 chunk +0 lines, -1 line 0 comments Download
M ash/default_wallpaper_delegate.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M ash/mus/context_menu_mus.cc View 2 chunks +2 lines, -1 line 0 comments Download
M ash/mus/shell_delegate_mus.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M ash/mus/wallpaper_delegate_mus.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -15 lines 0 comments Download
M ash/mus/wallpaper_delegate_mus.cc View 1 2 3 4 5 6 7 3 chunks +1 line, -43 lines 0 comments Download
M ash/mus/window_manager_application.h View 1 2 3 4 5 6 7 4 chunks +0 lines, -8 lines 0 comments Download
M ash/mus/window_manager_application.cc View 1 2 3 4 5 6 7 3 chunks +0 lines, -12 lines 0 comments Download
M ash/public/interfaces/typemaps.gni View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M ash/public/interfaces/wallpaper.mojom View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
A ash/public/interfaces/wallpaper.typemap View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
A ash/public/interfaces/wallpaper_enum_traits.h View 1 2 3 4 1 chunk +55 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_manifest_overlay.json View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/background/ash_wallpaper_delegate.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/chrome_interface_factory.cc View 1 2 3 4 5 6 7 3 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/customization/customization_wallpaper_downloader_browsertest.cc View 1 2 3 4 5 6 8 chunks +7 lines, -22 lines 0 comments Download
M chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h View 1 7 chunks +21 lines, -56 lines 0 comments Download
M chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.cc View 1 2 3 4 5 6 7 8 7 chunks +23 lines, -51 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -2 lines 0 comments Download
D chrome/browser/ui/ash/chrome_wallpaper_manager.h View 1 chunk +0 lines, -28 lines 0 comments Download
D chrome/browser/ui/ash/chrome_wallpaper_manager.cc View 1 chunk +0 lines, -20 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_context_menu.cc View 1 3 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/ui/webui/settings/appearance_handler.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -3 lines 0 comments Download
M components/arc/intent_helper/arc_intent_helper_bridge.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 66 (42 generated)
msw
Hey James, please take a look; thanks!
4 years, 2 months ago (2016-10-11 22:05:58 UTC) #4
James Cook
LGTM with nits. Ping me again if the test failure requires significant changes to fix. ...
4 years, 2 months ago (2016-10-11 23:21:49 UTC) #9
msw
Hey James, please take another look. This CL no longer enables mojo codepaths for transporting ...
4 years, 2 months ago (2016-10-14 21:07:43 UTC) #16
James Cook
Some little things. https://codereview.chromium.org/2413503002/diff/120001/ash/common/wallpaper/wallpaper_controller.cc File ash/common/wallpaper/wallpaper_controller.cc (right): https://codereview.chromium.org/2413503002/diff/120001/ash/common/wallpaper/wallpaper_controller.cc#newcode212 ash/common/wallpaper/wallpaper_controller.cc:212: callback.Run(*GetWallpaper().bitmap(), GetWallpaperLayout()); nit: maybe comment here ...
4 years, 2 months ago (2016-10-14 21:58:02 UTC) #17
msw
Hey James, please take another look; thanks! As discussed offline, I removed the GetWallpaper functionality ...
4 years, 2 months ago (2016-10-17 22:22:48 UTC) #23
James Cook
LGTM! Nice patch.
4 years, 2 months ago (2016-10-17 23:40:56 UTC) #28
msw
OWNERS, please take a look; thanks! tsepez: ash/public/interfaces/* stevenjb: c/b/chromeos/* and c/b/ui/webui/* sky: non-chromeos non-webui ...
4 years, 2 months ago (2016-10-17 23:53:38 UTC) #31
Yusuke Sato
components/arc/ lgtm
4 years, 2 months ago (2016-10-17 23:54:02 UTC) #32
Tom Sepez
mojom LGTM
4 years, 2 months ago (2016-10-17 23:56:57 UTC) #33
sky
LGTM
4 years, 2 months ago (2016-10-18 16:31:02 UTC) #36
stevenjb
owner rs lgtm
4 years, 2 months ago (2016-10-18 20:40:30 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2413503002/200001
4 years, 2 months ago (2016-10-18 20:47:06 UTC) #39
commit-bot: I haz the power
Failed to apply patch for ash/common/mojo_interface_factory.cc: While running git apply --index -3 -p1; error: patch ...
4 years, 2 months ago (2016-10-18 20:51:59 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2413503002/220001
4 years, 2 months ago (2016-10-18 21:30:52 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/297992)
4 years, 2 months ago (2016-10-18 23:34:40 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2413503002/220001
4 years, 2 months ago (2016-10-19 00:02:50 UTC) #49
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/284139)
4 years, 2 months ago (2016-10-19 00:26:35 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2413503002/220001
4 years, 2 months ago (2016-10-19 01:33:31 UTC) #53
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/298323)
4 years, 2 months ago (2016-10-19 05:26:56 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2413503002/220001
4 years, 2 months ago (2016-10-19 15:15:58 UTC) #57
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/299053)
4 years, 2 months ago (2016-10-19 15:35:30 UTC) #59
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2413503002/240001
4 years, 2 months ago (2016-10-19 16:04:59 UTC) #62
commit-bot: I haz the power
Committed patchset #11 (id:240001)
4 years, 2 months ago (2016-10-19 17:06:06 UTC) #64
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:09:34 UTC) #66
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/c691bf17a2b2fdee9c863be37134149d042787b4
Cr-Commit-Position: refs/heads/master@{#426227}

Powered by Google App Engine
This is Rietveld 408576698