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

Issue 9764012: Restore to user selected wallpaper after browser crash (Closed)

Created:
8 years, 9 months ago by bshe
Modified:
8 years, 9 months ago
CC:
chromium-reviews, sadrul, nkostylev+watch_chromium.org, ben+watch_chromium.org, dhollowa+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Restore to user selected wallpaper after browser crash After browser crash, the wallpaper was reverted to the default wallpaper. This CL fix the bug. BUG=118751 TEST=Test on any chromeos device select a wallpaper different than the default one go to about:inducebrowsercrashforrealz, the browser will crash and restart verify if the wallpaper reverted to the default wallpaper after restart. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=128232

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address review and fix a segfault when starting chrome after saving data to local state. #

Total comments: 4

Patch Set 3 : Address Rob's review #

Patch Set 4 : Merge to trunk #

Total comments: 6

Patch Set 5 : Address review #

Patch Set 6 : Create a dummy class to fix test fail. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -46 lines) Patch
M ash/accelerators/accelerator_controller.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ash/desktop_background/desktop_background_controller.h View 1 2 2 chunks +10 lines, -15 lines 0 comments Download
M ash/desktop_background/desktop_background_controller.cc View 1 2 chunks +3 lines, -11 lines 0 comments Download
M ash/shell.h View 1 2 3 3 chunks +5 lines, -0 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 5 3 chunks +25 lines, -2 lines 0 comments Download
M ash/shell/shell_main.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M ash/shell_delegate.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M ash/test/test_shell_delegate.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ash/test/test_shell_delegate.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/background/desktop_background_observer.h View 1 chunk +7 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/background/desktop_background_observer.cc View 1 2 3 4 2 chunks +35 lines, -13 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager_impl.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/ash/chrome_shell_delegate.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/ash/chrome_shell_delegate.cc View 1 2 3 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
bshe
+flackr for everything +ben for OWNERS This CL fixes the wallpaper revert to default wallpaper ...
8 years, 9 months ago (2012-03-21 01:23:27 UTC) #1
flackr
https://chromiumcodereview.appspot.com/9764012/diff/1/ash/desktop_background/desktop_background_controller.cc File ash/desktop_background/desktop_background_controller.cc (right): https://chromiumcodereview.appspot.com/9764012/diff/1/ash/desktop_background/desktop_background_controller.cc#newcode42 ash/desktop_background/desktop_background_controller.cc:42: void DesktopBackgroundController::OnUserLoginOrSwitchToImageMode() { Rather than adding this method, how ...
8 years, 9 months ago (2012-03-21 17:44:19 UTC) #2
bshe
Done. PTAL. Thanks! https://chromiumcodereview.appspot.com/9764012/diff/1/ash/desktop_background/desktop_background_controller.cc File ash/desktop_background/desktop_background_controller.cc (right): https://chromiumcodereview.appspot.com/9764012/diff/1/ash/desktop_background/desktop_background_controller.cc#newcode42 ash/desktop_background/desktop_background_controller.cc:42: void DesktopBackgroundController::OnUserLoginOrSwitchToImageMode() { Done. On 2012/03/21 ...
8 years, 9 months ago (2012-03-22 02:16:02 UTC) #3
flackr
https://chromiumcodereview.appspot.com/9764012/diff/8003/ash/accelerators/accelerator_controller.cc File ash/accelerators/accelerator_controller.cc (right): https://chromiumcodereview.appspot.com/9764012/diff/8003/ash/accelerators/accelerator_controller.cc#newcode100 ash/accelerators/accelerator_controller.cc:100: desktop_background_controller->OnUserLoginOrSwitchToImageMode(); OnDesktopBackgroundChanged? https://chromiumcodereview.appspot.com/9764012/diff/8003/chrome/browser/chromeos/background/desktop_background_observer.cc File chrome/browser/chromeos/background/desktop_background_observer.cc (right): https://chromiumcodereview.appspot.com/9764012/diff/8003/chrome/browser/chromeos/background/desktop_background_observer.cc#newcode29 chrome/browser/chromeos/background/desktop_background_observer.cc:29: // ...
8 years, 9 months ago (2012-03-22 02:26:09 UTC) #4
bshe
Done. Thanks for quick review! https://chromiumcodereview.appspot.com/9764012/diff/8003/ash/accelerators/accelerator_controller.cc File ash/accelerators/accelerator_controller.cc (right): https://chromiumcodereview.appspot.com/9764012/diff/8003/ash/accelerators/accelerator_controller.cc#newcode100 ash/accelerators/accelerator_controller.cc:100: desktop_background_controller->OnUserLoginOrSwitchToImageMode(); On 2012/03/22 02:26:09, ...
8 years, 9 months ago (2012-03-22 02:48:11 UTC) #5
flackr
lgtm with nit. https://chromiumcodereview.appspot.com/9764012/diff/12009/chrome/browser/chromeos/background/desktop_background_observer.cc File chrome/browser/chromeos/background/desktop_background_observer.cc (right): https://chromiumcodereview.appspot.com/9764012/diff/12009/chrome/browser/chromeos/background/desktop_background_observer.cc#newcode21 chrome/browser/chromeos/background/desktop_background_observer.cc:21: explicit UserWallpaperDelegate() { Only use explicit ...
8 years, 9 months ago (2012-03-22 03:19:10 UTC) #6
Ben Goodger (Google)
LGTM https://chromiumcodereview.appspot.com/9764012/diff/12009/chrome/browser/chromeos/background/desktop_background_observer.cc File chrome/browser/chromeos/background/desktop_background_observer.cc (right): https://chromiumcodereview.appspot.com/9764012/diff/12009/chrome/browser/chromeos/background/desktop_background_observer.cc#newcode27 chrome/browser/chromeos/background/desktop_background_observer.cc:27: virtual const int GetUserWallpaperIndex() OVERRIDE{ nit: space before ...
8 years, 9 months ago (2012-03-22 03:23:16 UTC) #7
bshe
8 years, 9 months ago (2012-03-22 05:21:15 UTC) #8
Done. Thanks!

https://chromiumcodereview.appspot.com/9764012/diff/12009/chrome/browser/chro...
File chrome/browser/chromeos/background/desktop_background_observer.cc (right):

https://chromiumcodereview.appspot.com/9764012/diff/12009/chrome/browser/chro...
chrome/browser/chromeos/background/desktop_background_observer.cc:21: explicit
UserWallpaperDelegate() {
On 2012/03/22 03:19:10, flackr wrote:
> Only use explicit for single argument constructors.

Done.

https://chromiumcodereview.appspot.com/9764012/diff/12009/chrome/browser/chro...
chrome/browser/chromeos/background/desktop_background_observer.cc:27: virtual
const int GetUserWallpaperIndex() OVERRIDE{
On 2012/03/22 03:23:16, Ben Goodger (Google) wrote:
> nit: space before {

Done.

https://chromiumcodereview.appspot.com/9764012/diff/12009/chrome/browser/chro...
chrome/browser/chromeos/background/desktop_background_observer.cc:40: };
On 2012/03/22 03:23:16, Ben Goodger (Google) wrote:
> private:
> 
> DISALLOW_COPY_AND...

Done.

Powered by Google App Engine
This is Rietveld 408576698