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 2286603002: Forbid ImageDownloaderImpl from accessing RenderThread instance after message loop shutdown. (Closed)

Created:
4 years, 3 months ago by leonhsl(Using Gerrit)
Modified:
4 years, 3 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, mlamouri+watch-content_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Forbid ImageDownloaderImpl from accessing RenderThread instance after message loop shutdown. This CL fixes the crash caused by following possible scenario: - the message loop is shutdown. - during its destructor it calls connection error on ImageDownloaderImpl. - the strong binding of ImageDownloaderImpl causes it to be destructed. - the destructor calls RenderThread::Get()->RemoveObserver(this), which is not valid any more. BUG=640999 TBR=jochen@chromium.org Committed: https://crrev.com/d2ac649bc631233f4355860a011d3d30f985bb67 Cr-Commit-Position: refs/heads/master@{#414985}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add comments to explain why we do the null check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -1 line) Patch
M content/renderer/image_downloader/image_downloader_impl.cc View 1 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 32 (22 generated)
leonhsl(Using Gerrit)
Hi, would you PTAL at this? Thanks.
4 years, 3 months ago (2016-08-26 07:56:19 UTC) #6
jochen (gone - plz use gerrit)
+haraken can this still happen now that all the shutdown stuff was ripped out?
4 years, 3 months ago (2016-08-26 15:06:40 UTC) #8
haraken
On 2016/08/26 15:06:40, jochen wrote: > +haraken > > can this still happen now that ...
4 years, 3 months ago (2016-08-26 15:24:54 UTC) #9
yzshen1
LGTM https://codereview.chromium.org/2286603002/diff/1/content/renderer/image_downloader/image_downloader_impl.cc File content/renderer/image_downloader/image_downloader_impl.cc (right): https://codereview.chromium.org/2286603002/diff/1/content/renderer/image_downloader/image_downloader_impl.cc#newcode134 content/renderer/image_downloader/image_downloader_impl.cc:134: if (thread) Please comment on why this null ...
4 years, 3 months ago (2016-08-26 19:20:31 UTC) #10
leonhsl(Using Gerrit)
Uploaded ps#2 to address Yuzhu's comments, Thanks~ Hi, jochen@, haraken@, do we need to land ...
4 years, 3 months ago (2016-08-29 02:17:30 UTC) #11
haraken
On 2016/08/29 02:17:30, leonhsl wrote: > Uploaded ps#2 to address Yuzhu's comments, Thanks~ > > ...
4 years, 3 months ago (2016-08-29 02:34:17 UTC) #14
leonhsl(Using Gerrit)
On 2016/08/29 02:34:17, haraken wrote: > On 2016/08/29 02:17:30, leonhsl wrote: > > Uploaded ps#2 ...
4 years, 3 months ago (2016-08-29 08:29:19 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2286603002/20001
4 years, 3 months ago (2016-08-29 08:29:50 UTC) #29
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-08-29 09:06:33 UTC) #30
commit-bot: I haz the power
4 years, 3 months ago (2016-08-29 09:08:16 UTC) #32
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/d2ac649bc631233f4355860a011d3d30f985bb67
Cr-Commit-Position: refs/heads/master@{#414985}

Powered by Google App Engine
This is Rietveld 408576698