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

Issue 236013002: Apply default wallpaper from customization manifest. (Closed)

Created:
6 years, 8 months ago by Alexander Alekseev
Modified:
6 years, 8 months ago
CC:
chromium-reviews, sadrul, nkostylev+watch_chromium.org, ben+ash_chromium.org, oshima+watch_chromium.org, kalyank, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Apply default wallpaper from customization manifest. This CL also fixes bug with default wallpaper cache. BUG=348136, 363134 TEST=manual Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=265636

Patch Set 1 #

Total comments: 16

Patch Set 2 : After-review. #

Total comments: 57

Patch Set 3 : After-review. #

Total comments: 68

Patch Set 4 : Update after review. #

Patch Set 5 : Update comments. #

Total comments: 14

Patch Set 6 : Implemented retry apply customization on restart. #

Patch Set 7 : Comments updated. #

Total comments: 6

Patch Set 8 : Moved call to EnsureCustomizationAppliedClosure() to a better place. #

Total comments: 10

Patch Set 9 : Update after review. #

Patch Set 10 : Rebased. #

Patch Set 11 : Fix windows build. #

Patch Set 12 : Allow customization without wallpaper. #

Total comments: 10

Patch Set 13 : Fix unittest. #

Patch Set 14 : Update after review. #

Patch Set 15 : Fix ExternalProviderImplTest. #

Patch Set 16 : Remove wallpaper URL from ServicesCustomizationDocumentTest. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1132 lines, -75 lines) Patch
M ash/desktop_background/desktop_background_controller.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +12 lines, -6 lines 0 comments Download
M ash/desktop_background/desktop_background_controller.cc View 1 2 3 4 5 6 7 8 9 4 chunks +9 lines, -3 lines 0 comments Download
M ash/desktop_background/wallpaper_resizer.h View 1 chunk +0 lines, -2 lines 0 comments Download
M ash/desktop_background/wallpaper_resizer.cc View 1 2 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/chromeos/customization_document.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +64 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/customization_document.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 13 chunks +291 lines, -14 lines 0 comments Download
M chrome/browser/chromeos/customization_document_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +9 lines, -9 lines 1 comment Download
A chrome/browser/chromeos/customization_wallpaper_downloader.h View 1 2 3 4 5 6 7 8 1 chunk +102 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/customization_wallpaper_downloader.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +194 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/login_display_host_impl.cc View 1 2 3 4 5 6 7 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/user_image.h View 1 2 3 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/user_image_loader.h View 1 2 3 3 chunks +10 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/login/user_image_loader.cc View 1 2 3 5 chunks +25 lines, -21 lines 0 comments Download
M chrome/browser/chromeos/login/wallpaper_manager.h View 1 2 3 4 5 6 7 8 9 4 chunks +52 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/wallpaper_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 10 chunks +314 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/login/wizard_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/external_provider_impl_chromeos_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/extensions/external_provider_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +12 lines, -0 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (0 generated)
Alexander Alekseev
This is a second part of CL: https://codereview.chromium.org/208273005/ (A follow up to the first part: ...
6 years, 8 months ago (2014-04-11 22:19:12 UTC) #1
Dmitry Polukhin
https://codereview.chromium.org/236013002/diff/1/chrome/browser/chromeos/customization_document.cc File chrome/browser/chromeos/customization_document.cc (right): https://codereview.chromium.org/236013002/diff/1/chrome/browser/chromeos/customization_document.cc#newcode76 chrome/browser/chromeos/customization_document.cc:76: // THis is subdirectory relative to PathService(DIR_CHROMEOS_CUSTOM_WALLPAPERS), nit, s/THis/This/ ...
6 years, 8 months ago (2014-04-11 23:17:17 UTC) #2
Alexander Alekseev
Please review again. We also need to add a call to ServicesCustomizationDocument::CheckAndApplyWallpaper() somewhere to each ...
6 years, 8 months ago (2014-04-12 01:42:30 UTC) #3
Mattias Nissler (ping if slow)
pref_names.{cc,h} LGTM
6 years, 8 months ago (2014-04-14 07:36:25 UTC) #4
Daniel Erat
please add tests for the new code https://codereview.chromium.org/236013002/diff/20001/ash/desktop_background/desktop_background_controller.cc File ash/desktop_background/desktop_background_controller.cc (right): https://codereview.chromium.org/236013002/diff/20001/ash/desktop_background/desktop_background_controller.cc#newcode204 ash/desktop_background/desktop_background_controller.cc:204: if (WALLPAPER_LAYOUT_UNKNOWN ...
6 years, 8 months ago (2014-04-14 15:26:14 UTC) #5
Dmitry Polukhin
https://codereview.chromium.org/236013002/diff/1/chrome/browser/chromeos/customization_wallpaper_downloader.cc File chrome/browser/chromeos/customization_wallpaper_downloader.cc (right): https://codereview.chromium.org/236013002/diff/1/chrome/browser/chromeos/customization_wallpaper_downloader.cc#newcode67 chrome/browser/chromeos/customization_wallpaper_downloader.cc:67: void CustomizationWallpaperDownloader::Retry() { On 2014/04/12 01:42:30, alemate wrote: > ...
6 years, 8 months ago (2014-04-14 20:26:36 UTC) #6
Alexander Alekseev
Please review. https://codereview.chromium.org/236013002/diff/1/chrome/browser/chromeos/customization_wallpaper_downloader.cc File chrome/browser/chromeos/customization_wallpaper_downloader.cc (right): https://codereview.chromium.org/236013002/diff/1/chrome/browser/chromeos/customization_wallpaper_downloader.cc#newcode67 chrome/browser/chromeos/customization_wallpaper_downloader.cc:67: void CustomizationWallpaperDownloader::Retry() { On 2014/04/14 20:26:37, Dmitry ...
6 years, 8 months ago (2014-04-15 01:57:15 UTC) #7
Daniel Erat
as mentioned before, please write tests for CustomizationWallpaperDownloader https://codereview.chromium.org/236013002/diff/40001/chrome/browser/chromeos/customization_document.cc File chrome/browser/chromeos/customization_document.cc (right): https://codereview.chromium.org/236013002/diff/40001/chrome/browser/chromeos/customization_document.cc#newcode81 chrome/browser/chromeos/customization_document.cc:81: const ...
6 years, 8 months ago (2014-04-15 03:06:29 UTC) #8
Nikita (slow)
https://codereview.chromium.org/236013002/diff/40001/ash/desktop_background/desktop_background_controller.cc File ash/desktop_background/desktop_background_controller.cc (right): https://codereview.chromium.org/236013002/diff/40001/ash/desktop_background/desktop_background_controller.cc#newcode103 ash/desktop_background/desktop_background_controller.cc:103: if (WallpaperIsAlreadyLoaded(&image, kInvalidResourceID, true, layout)) { nit: /* compare ...
6 years, 8 months ago (2014-04-15 12:39:24 UTC) #9
Nikita (slow)
https://codereview.chromium.org/236013002/diff/40001/chrome/browser/chromeos/login/wallpaper_manager.cc File chrome/browser/chromeos/login/wallpaper_manager.cc (right): https://codereview.chromium.org/236013002/diff/40001/chrome/browser/chromeos/login/wallpaper_manager.cc#newcode61 chrome/browser/chromeos/login/wallpaper_manager.cc:61: bool AllRescaledExist() const; nit: Rename to AllSizesExist() https://codereview.chromium.org/236013002/diff/40001/chrome/browser/chromeos/login/wallpaper_manager.cc#newcode161 chrome/browser/chromeos/login/wallpaper_manager.cc:161: ...
6 years, 8 months ago (2014-04-15 13:39:59 UTC) #10
Alexander Alekseev
https://codereview.chromium.org/236013002/diff/40001/ash/desktop_background/desktop_background_controller.cc File ash/desktop_background/desktop_background_controller.cc (right): https://codereview.chromium.org/236013002/diff/40001/ash/desktop_background/desktop_background_controller.cc#newcode103 ash/desktop_background/desktop_background_controller.cc:103: if (WallpaperIsAlreadyLoaded(&image, kInvalidResourceID, true, layout)) { On 2014/04/15 12:39:24, ...
6 years, 8 months ago (2014-04-15 22:47:31 UTC) #11
Dmitry Polukhin
https://codereview.chromium.org/236013002/diff/40001/chrome/browser/chromeos/login/wizard_controller.cc File chrome/browser/chromeos/login/wizard_controller.cc (right): https://codereview.chromium.org/236013002/diff/40001/chrome/browser/chromeos/login/wizard_controller.cc#newcode655 chrome/browser/chromeos/login/wizard_controller.cc:655: ServicesCustomizationDocument::GetInstance()->StartFetching(); On 2014/04/15 22:47:31, alemate wrote: > On 2014/04/15 ...
6 years, 8 months ago (2014-04-15 22:57:06 UTC) #12
Daniel Erat
https://codereview.chromium.org/236013002/diff/70001/chrome/browser/chromeos/customization_document.cc File chrome/browser/chromeos/customization_document.cc (right): https://codereview.chromium.org/236013002/diff/70001/chrome/browser/chromeos/customization_document.cc#newcode82 chrome/browser/chromeos/customization_document.cc:82: "default.downloaded"; having a period in the middle of the ...
6 years, 8 months ago (2014-04-16 15:35:40 UTC) #13
Nikita (slow)
Please add tests, I'll do another look then. https://codereview.chromium.org/236013002/diff/40001/chrome/browser/chromeos/login/wizard_controller.cc File chrome/browser/chromeos/login/wizard_controller.cc (right): https://codereview.chromium.org/236013002/diff/40001/chrome/browser/chromeos/login/wizard_controller.cc#newcode655 chrome/browser/chromeos/login/wizard_controller.cc:655: ServicesCustomizationDocument::GetInstance()->StartFetching(); ...
6 years, 8 months ago (2014-04-16 18:16:20 UTC) #14
Alexander Alekseev
https://codereview.chromium.org/236013002/diff/40001/chrome/browser/chromeos/login/wizard_controller.cc File chrome/browser/chromeos/login/wizard_controller.cc (right): https://codereview.chromium.org/236013002/diff/40001/chrome/browser/chromeos/login/wizard_controller.cc#newcode655 chrome/browser/chromeos/login/wizard_controller.cc:655: ServicesCustomizationDocument::GetInstance()->StartFetching(); On 2014/04/15 22:57:06, Dmitry Polukhin wrote: > On ...
6 years, 8 months ago (2014-04-16 23:19:58 UTC) #15
Nikita (slow)
lgtm https://codereview.chromium.org/236013002/diff/100001/chrome/browser/chromeos/customization_document.cc File chrome/browser/chromeos/customization_document.cc (right): https://codereview.chromium.org/236013002/diff/100001/chrome/browser/chromeos/customization_document.cc#newcode372 chrome/browser/chromeos/customization_document.cc:372: bool engaged_; nit: Add comment for engaged_. https://codereview.chromium.org/236013002/diff/100001/chrome/browser/chromeos/customization_document.h ...
6 years, 8 months ago (2014-04-17 05:23:34 UTC) #16
Nikita (slow)
On 2014/04/16 23:19:58, alemate wrote: > I'll add tests in another CL. This one is ...
6 years, 8 months ago (2014-04-17 05:24:49 UTC) #17
Alexander Alekseev
https://codereview.chromium.org/236013002/diff/100001/chrome/browser/chromeos/customization_document.cc File chrome/browser/chromeos/customization_document.cc (right): https://codereview.chromium.org/236013002/diff/100001/chrome/browser/chromeos/customization_document.cc#newcode372 chrome/browser/chromeos/customization_document.cc:372: bool engaged_; On 2014/04/17 05:23:34, Nikita Kostylev wrote: > ...
6 years, 8 months ago (2014-04-17 14:34:38 UTC) #18
Dmitry Polukhin
LGTM but please rebase and run trybots. Also please add tests in next CL.
6 years, 8 months ago (2014-04-17 15:44:30 UTC) #19
Daniel Erat
lgtm after some more comments are addressed, although i'd strongly prefer that you added tests ...
6 years, 8 months ago (2014-04-17 16:24:21 UTC) #20
Alexander Alekseev
Ok. I'll rebase it now, check and commit, as it probably stops other CLs to ...
6 years, 8 months ago (2014-04-17 20:02:55 UTC) #21
Alexander Alekseev
bshe@, do you have any more comments on this CL?
6 years, 8 months ago (2014-04-17 20:43:05 UTC) #22
Alexander Alekseev
On 2014/04/17 15:44:30, Dmitry Polukhin wrote: > LGTM but please rebase and run trybots. Also ...
6 years, 8 months ago (2014-04-19 02:51:47 UTC) #23
Dmitry Polukhin
On 2014/04/19 02:51:47, alemate wrote: > On 2014/04/17 15:44:30, Dmitry Polukhin wrote: > > LGTM ...
6 years, 8 months ago (2014-04-19 05:02:29 UTC) #24
Daniel Erat
lgtm https://codereview.chromium.org/236013002/diff/170001/chrome/browser/chromeos/customization_document.cc File chrome/browser/chromeos/customization_document.cc (right): https://codereview.chromium.org/236013002/diff/170001/chrome/browser/chromeos/customization_document.cc#newcode182 chrome/browser/chromeos/customization_document.cc:182: // recursively so we need to return to ...
6 years, 8 months ago (2014-04-19 14:24:07 UTC) #25
Alexander Alekseev
+asargent@ : please review chrome/browser/extensions/external_provider_impl_chromeos_unittest.cc https://codereview.chromium.org/236013002/diff/170001/chrome/browser/chromeos/customization_document.cc File chrome/browser/chromeos/customization_document.cc (right): https://codereview.chromium.org/236013002/diff/170001/chrome/browser/chromeos/customization_document.cc#newcode182 chrome/browser/chromeos/customization_document.cc:182: // recursively so we ...
6 years, 8 months ago (2014-04-21 16:49:40 UTC) #26
asargent_no_longer_on_chrome
chrome/browser/extensions lgtm
6 years, 8 months ago (2014-04-22 04:01:49 UTC) #27
Alexander Alekseev
The CQ bit was checked by alemate@chromium.org
6 years, 8 months ago (2014-04-23 12:36:12 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alemate@chromium.org/236013002/240001
6 years, 8 months ago (2014-04-23 12:36:23 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-23 12:39:35 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-04-23 12:39:36 UTC) #31
Alexander Alekseev
The CQ bit was checked by alemate@chromium.org
6 years, 8 months ago (2014-04-23 12:51:30 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alemate@chromium.org/236013002/240001
6 years, 8 months ago (2014-04-23 12:51:50 UTC) #33
commit-bot: I haz the power
Change committed as 265636
6 years, 8 months ago (2014-04-23 14:17:59 UTC) #34
Dmitry Polukhin
https://codereview.chromium.org/236013002/diff/240001/chrome/browser/chromeos/customization_document_unittest.cc File chrome/browser/chromeos/customization_document_unittest.cc (left): https://codereview.chromium.org/236013002/diff/240001/chrome/browser/chromeos/customization_document_unittest.cc#oldcode79 chrome/browser/chromeos/customization_document_unittest.cc:79: " \"default_wallpaper\": \"http://somedomain.com/image.png\",\n" Why did you do this instead ...
6 years, 8 months ago (2014-04-23 20:24:04 UTC) #35
Alexander Alekseev
On 2014/04/23 20:24:04, Dmitry Polukhin wrote: > https://codereview.chromium.org/236013002/diff/240001/chrome/browser/chromeos/customization_document_unittest.cc > File chrome/browser/chromeos/customization_document_unittest.cc (left): > > https://codereview.chromium.org/236013002/diff/240001/chrome/browser/chromeos/customization_document_unittest.cc#oldcode79 ...
6 years, 8 months ago (2014-04-24 14:47:25 UTC) #36
Dmitry Polukhin
6 years, 8 months ago (2014-04-24 15:51:18 UTC) #37
Message was sent while issue was closed.
On 2014/04/24 14:47:25, alemate wrote:
> The idea was to add tests in another CL. So here I have only fixed failures in
> existing tests.
> 
> Yes, It seems that it was a bad idea to modify this test after your note, but
> I'll add test on that in another CL.

OK, please add new test. But you closed Issue 348136. In future please keep
issue open until you add required test or open new issue for the test only.

Powered by Google App Engine
This is Rietveld 408576698