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

Issue 11299304: Callback to function InitializeRegisteredDeviceWallpaper after cros settings can be trusted (Closed)

Created:
8 years ago by bshe
Modified:
8 years ago
CC:
chromium-reviews, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Callback to function InitializeRegisteredDeviceWallpaper after cros settings can be trusted InitializeWallpaper is being called in a very early stage(shell initialization). At such point, the cros settings may not be validated, so the value maybe wrong. Function InitializeWallpaper, however, depends on kAccountsPrefShowUserNamesOnSignIn to behavior correctly. This CL made a callback to InitializeWallpaper if we detect that the settings is not yet validated. BUG=162760 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=172415

Patch Set 1 #

Total comments: 5

Patch Set 2 : Fix issue for permanently_untrusted situation #

Total comments: 2

Patch Set 3 : Create function InitializeRegisteredDeviceWallpaper #

Total comments: 4

Patch Set 4 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -20 lines) Patch
M chrome/browser/chromeos/login/wallpaper_manager.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/wallpaper_manager.cc View 1 2 3 2 chunks +30 lines, -20 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
bshe
Hi guys. Could you please take a look at this CL? I have verified that ...
8 years ago (2012-12-03 17:05:41 UTC) #1
bshe
I will add test in a separate CL for the merit of merge. On 2012/12/03 ...
8 years ago (2012-12-03 17:07:08 UTC) #2
Nikita (slow)
lgtm
8 years ago (2012-12-04 08:25:01 UTC) #3
Mattias Nissler (ping if slow)
https://codereview.chromium.org/11299304/diff/1/chrome/browser/chromeos/login/wallpaper_manager.cc File chrome/browser/chromeos/login/wallpaper_manager.cc (right): https://codereview.chromium.org/11299304/diff/1/chrome/browser/chromeos/login/wallpaper_manager.cc#newcode252 chrome/browser/chromeos/login/wallpaper_manager.cc:252: } should this be moved to the top of ...
8 years ago (2012-12-04 09:31:18 UTC) #4
bartfab (slow)
https://chromiumcodereview.appspot.com/11299304/diff/1/chrome/browser/chromeos/login/wallpaper_manager.cc File chrome/browser/chromeos/login/wallpaper_manager.cc (right): https://chromiumcodereview.appspot.com/11299304/diff/1/chrome/browser/chromeos/login/wallpaper_manager.cc#newcode252 chrome/browser/chromeos/login/wallpaper_manager.cc:252: } On 2012/12/04 09:31:18, Mattias Nissler wrote: > should ...
8 years ago (2012-12-04 09:59:39 UTC) #5
bshe
Thanks for review! https://codereview.chromium.org/11299304/diff/1/chrome/browser/chromeos/login/wallpaper_manager.cc File chrome/browser/chromeos/login/wallpaper_manager.cc (right): https://codereview.chromium.org/11299304/diff/1/chrome/browser/chromeos/login/wallpaper_manager.cc#newcode252 chrome/browser/chromeos/login/wallpaper_manager.cc:252: } I see. How often does ...
8 years ago (2012-12-04 18:32:37 UTC) #6
bshe
Please see patchset 2 for proposed solution for permanently untrusted case. It is based on ...
8 years ago (2012-12-04 20:13:13 UTC) #7
bshe
https://codereview.chromium.org/11299304/diff/1/chrome/browser/chromeos/login/wallpaper_manager.cc File chrome/browser/chromeos/login/wallpaper_manager.cc (right): https://codereview.chromium.org/11299304/diff/1/chrome/browser/chromeos/login/wallpaper_manager.cc#newcode252 chrome/browser/chromeos/login/wallpaper_manager.cc:252: } bartfab@ Sorry. Please ignore my comment about RetrieveTrustedDevicePolicies. ...
8 years ago (2012-12-05 14:58:35 UTC) #8
bshe
On 2012/12/05 14:58:35, bshe wrote: > https://codereview.chromium.org/11299304/diff/1/chrome/browser/chromeos/login/wallpaper_manager.cc > File chrome/browser/chromeos/login/wallpaper_manager.cc (right): > > https://codereview.chromium.org/11299304/diff/1/chrome/browser/chromeos/login/wallpaper_manager.cc#newcode252 > ...
8 years ago (2012-12-06 13:48:26 UTC) #9
bartfab (slow)
Sorry about the delay and thanks for the ping. https://codereview.chromium.org/11299304/diff/4002/chrome/browser/chromeos/login/wallpaper_manager.cc File chrome/browser/chromeos/login/wallpaper_manager.cc (right): https://codereview.chromium.org/11299304/diff/4002/chrome/browser/chromeos/login/wallpaper_manager.cc#newcode247 chrome/browser/chromeos/login/wallpaper_manager.cc:247: ...
8 years ago (2012-12-06 13:57:01 UTC) #10
bshe
On 2012/12/06 13:57:01, bartfab wrote: > Sorry about the delay and thanks for the ping. ...
8 years ago (2012-12-06 15:31:22 UTC) #11
bartfab (slow)
On 2012/12/06 15:31:22, bshe wrote: > On 2012/12/06 13:57:01, bartfab wrote: > > Sorry about ...
8 years ago (2012-12-07 17:30:49 UTC) #12
bshe1
Thanks for comments. On Fri, Dec 7, 2012 at 12:30 PM, <bartfab@chromium.org> wrote: > On ...
8 years ago (2012-12-10 15:34:11 UTC) #13
bartfab (slow)
On 12/10/2012 04:34 PM, Biao She wrote: > Thanks for comments. > > On Fri, ...
8 years ago (2012-12-10 17:49:13 UTC) #14
bshe
Thanks for reply! Do you have any other comment or concern? If not, would you ...
8 years ago (2012-12-10 18:05:24 UTC) #15
bartfab (slow)
LGTM. In case you missed it, Mattias had posted a comment that you may still ...
8 years ago (2012-12-10 18:26:56 UTC) #16
bshe
Thanks for pointing it out. I have add a new function to addree Mattias's comment. ...
8 years ago (2012-12-10 20:08:31 UTC) #17
Mattias Nissler (ping if slow)
LGTM
8 years ago (2012-12-11 00:19:40 UTC) #18
Nikita (slow)
lgtm https://codereview.chromium.org/11299304/diff/16001/chrome/browser/chromeos/login/wallpaper_manager.cc File chrome/browser/chromeos/login/wallpaper_manager.cc (right): https://codereview.chromium.org/11299304/diff/16001/chrome/browser/chromeos/login/wallpaper_manager.cc#newcode646 chrome/browser/chromeos/login/wallpaper_manager.cc:646: CrosSettings::Get()->PrepareTrustedValues( nit: either move 2 spaces to the ...
8 years ago (2012-12-11 13:16:38 UTC) #19
bshe
8 years ago (2012-12-11 14:36:17 UTC) #20
Done. Thanks!

https://codereview.chromium.org/11299304/diff/16001/chrome/browser/chromeos/l...
File chrome/browser/chromeos/login/wallpaper_manager.cc (right):

https://codereview.chromium.org/11299304/diff/16001/chrome/browser/chromeos/l...
chrome/browser/chromeos/login/wallpaper_manager.cc:646:
CrosSettings::Get()->PrepareTrustedValues(
On 2012/12/11 13:16:39, Nikita Kostylev wrote:
> nit: either move 2 spaces to the left or 2 spaces to the right

Done. Moved 2 spaces to the left.

https://codereview.chromium.org/11299304/diff/16001/chrome/browser/chromeos/l...
chrome/browser/chromeos/login/wallpaper_manager.cc:649: return;
On 2012/12/11 13:16:39, Nikita Kostylev wrote:
> nit: 2 spaces indent here.

Done.

Powered by Google App Engine
This is Rietveld 408576698