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

Issue 11366143: Fix the crash in DesktopBackgroundView::OnPaint (Closed)

Created:
8 years, 1 month ago by bshe
Modified:
8 years, 1 month ago
CC:
chromium-reviews, nkostylev+watch_chromium.org, Aaron Boodman, rsesek+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Fix the crash in DesktopBackgroundView::OnPaint ImageSkia is not RefCountedThreadSafe, just RefCounted. We are accessing wallpaper(ImageSkia) on different threads(FILE and UI). When two threads try to AddRef at the same time, it cause problem. For m23, the current solution is to make a deep copy of imageskia and pass a scoped pointer to other thread. See (http://codereview.chromium.org/11361131/) BUG=159431 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=167700

Patch Set 1 #

Total comments: 11

Patch Set 2 : #

Patch Set 3 : Oshima's review and rebase to TOT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -19 lines) Patch
M chrome/browser/chromeos/extensions/wallpaper_private_api.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/extensions/wallpaper_private_api.cc View 2 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/wallpaper_manager.h View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/wallpaper_manager.cc View 1 2 2 chunks +30 lines, -14 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
bshe
Hi Oshima and Peter. Could you please take a look? This CL is created on ...
8 years, 1 month ago (2012-11-08 21:52:43 UTC) #1
pkotwicz
I will let oshima@ review this patch. I think he is more knowledgeable. I will ...
8 years, 1 month ago (2012-11-09 17:45:33 UTC) #2
oshima
http://codereview.chromium.org/11366143/diff/1/chrome/browser/chromeos/extensions/wallpaper_private_api.cc File chrome/browser/chromeos/extensions/wallpaper_private_api.cc (right): http://codereview.chromium.org/11366143/diff/1/chrome/browser/chromeos/extensions/wallpaper_private_api.cc#newcode292 chrome/browser/chromeos/extensions/wallpaper_private_api.cc:292: // post to another thread. I think you don't ...
8 years, 1 month ago (2012-11-12 16:39:28 UTC) #3
bshe
Thanks for review! https://codereview.chromium.org/11366143/diff/1/chrome/browser/chromeos/extensions/wallpaper_private_api.cc File chrome/browser/chromeos/extensions/wallpaper_private_api.cc (right): https://codereview.chromium.org/11366143/diff/1/chrome/browser/chromeos/extensions/wallpaper_private_api.cc#newcode292 chrome/browser/chromeos/extensions/wallpaper_private_api.cc:292: // post to another thread. I ...
8 years, 1 month ago (2012-11-12 19:12:48 UTC) #4
oshima
https://codereview.chromium.org/11366143/diff/1/chrome/browser/chromeos/extensions/wallpaper_private_api.cc File chrome/browser/chromeos/extensions/wallpaper_private_api.cc (right): https://codereview.chromium.org/11366143/diff/1/chrome/browser/chromeos/extensions/wallpaper_private_api.cc#newcode292 chrome/browser/chromeos/extensions/wallpaper_private_api.cc:292: // post to another thread. On 2012/11/12 19:12:48, bshe ...
8 years, 1 month ago (2012-11-13 17:46:42 UTC) #5
bshe
Done. Thanks for review. Could you please take another look? https://codereview.chromium.org/11366143/diff/1/chrome/browser/chromeos/login/wallpaper_manager.cc File chrome/browser/chromeos/login/wallpaper_manager.cc (right): https://codereview.chromium.org/11366143/diff/1/chrome/browser/chromeos/login/wallpaper_manager.cc#newcode493 ...
8 years, 1 month ago (2012-11-13 21:18:45 UTC) #6
oshima
lgtm
8 years, 1 month ago (2012-11-13 21:43:53 UTC) #7
bshe
Thanks! +OWNERS +miket for extension/* +nkostylev for login/*
8 years, 1 month ago (2012-11-13 21:47:58 UTC) #8
miket_OOO
> +miket for extension/* LGTM
8 years, 1 month ago (2012-11-13 22:44:26 UTC) #9
Nikita (slow)
lgtm
8 years, 1 month ago (2012-11-14 14:03:43 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bshe@chromium.org/11366143/8009
8 years, 1 month ago (2012-11-14 14:51:31 UTC) #11
commit-bot: I haz the power
8 years, 1 month ago (2012-11-14 18:11:18 UTC) #12
Change committed as 167700

Powered by Google App Engine
This is Rietveld 408576698