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

Issue 10829381: Remove call to UserManager::Get when initializing UserManager (Closed)

Created:
8 years, 4 months ago by bshe
Modified:
8 years, 4 months ago
Reviewers:
Ivan Korotkov
CC:
chromium-reviews, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org, bartfab (slow)
Visibility:
Public.

Description

Remove call to UserManager::Get when initializing UserManager This CL removes UserManager::Get()(for ephemeral user check) out from WallpaperManager::SaveUserWallpaperProperties(called when initializing UserManager). It was creating a deadlock and make chrome hang on startup screen. The ephemeral user check in SaveUserWallpaperProperties is not correct either. We should not check if current logged in user is ephemeral user while we try to save wallpaper properties for some other user specified by email. BUG=142440 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=152136

Patch Set 1 #

Patch Set 2 : Dmitry Polukhin's patch #

Patch Set 3 : More fixes #

Total comments: 4

Patch Set 4 : Ivan's review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -35 lines) Patch
M chrome/browser/chromeos/login/user_manager_impl.cc View 1 2 3 7 chunks +17 lines, -12 lines 0 comments Download
M chrome/browser/chromeos/login/wallpaper_manager.h View 1 2 3 2 chunks +11 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/wallpaper_manager.cc View 1 2 3 6 chunks +30 lines, -19 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
bshe
Hi Ivan. Could you please take a look at this CL? Thanks!
8 years, 4 months ago (2012-08-17 15:48:39 UTC) #1
Dmitry Polukhin
LGTM
8 years, 4 months ago (2012-08-17 16:32:50 UTC) #2
Ivan Korotkov
lgtm http://codereview.chromium.org/10829381/diff/8001/chrome/browser/chromeos/login/wallpaper_manager.h File chrome/browser/chromeos/login/wallpaper_manager.h (right): http://codereview.chromium.org/10829381/diff/8001/chrome/browser/chromeos/login/wallpaper_manager.h#newcode95 chrome/browser/chromeos/login/wallpaper_manager.h:95: void SaveUserWallpaperProperties(const std::string& email, Let's rename it to ...
8 years, 4 months ago (2012-08-17 19:10:57 UTC) #3
rkc
+bartfab for FYI On 2012/08/17 19:10:57, Ivan Korotkov wrote: > lgtm > > http://codereview.chromium.org/10829381/diff/8001/chrome/browser/chromeos/login/wallpaper_manager.h > ...
8 years, 4 months ago (2012-08-17 19:16:42 UTC) #4
bshe
8 years, 4 months ago (2012-08-17 19:21:36 UTC) #5
Done. will run try bots again and submit. Thanks

https://chromiumcodereview.appspot.com/10829381/diff/8001/chrome/browser/chro...
File chrome/browser/chromeos/login/wallpaper_manager.h (right):

https://chromiumcodereview.appspot.com/10829381/diff/8001/chrome/browser/chro...
chrome/browser/chromeos/login/wallpaper_manager.h:95: void
SaveUserWallpaperProperties(const std::string& email,
On 2012/08/17 19:10:57, Ivan Korotkov wrote:
> Let's rename it to Set... because Save... already implies persistence.

Done.

https://chromiumcodereview.appspot.com/10829381/diff/8001/chrome/browser/chro...
chrome/browser/chromeos/login/wallpaper_manager.h:191: // email of current
logged in user. We should not persist data for ephemeral
On 2012/08/17 19:10:57, Ivan Korotkov wrote:
> Please rephrase this to what the function actually serves for, i.e.: //
Whether
> wallpaper data should be persisted for user |email|.

Done.

Powered by Google App Engine
This is Rietveld 408576698