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

Issue 1943403003: Add DCHECK to detect when a RPH is reused with a different context. (Closed)

Created:
4 years, 7 months ago by Reilly Grant (use Gerrit)
Modified:
4 years, 7 months ago
Reviewers:
jam
CC:
chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add DCHECK to detect when a RPH is reused with a different context. When running in single-process mode (as happens in tests) we always attempt to reuse an existing render process host. If a previous test does not clean up properly then this render process host will be associated with a (now invalid) BrowserContext. This DCHECK assists in discovering test cases where this happens without running the tests under a memory error detector such as MSan. BUG=608064 Committed: https://crrev.com/7b5641ee5ec1f5517924b020ad6265d4ffcaeabd Cr-Commit-Position: refs/heads/master@{#391865}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
M content/browser/renderer_host/render_process_host_impl.cc View 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 8 (3 generated)
Reilly Grant (use Gerrit)
jam@, this is the DCHECK we discussed adding.
4 years, 7 months ago (2016-05-03 21:50:06 UTC) #2
jam
lgtm
4 years, 7 months ago (2016-05-05 15:24:59 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1943403003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1943403003/1
4 years, 7 months ago (2016-05-05 17:43:32 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 7 months ago (2016-05-05 19:18:01 UTC) #6
commit-bot: I haz the power
4 years, 7 months ago (2016-05-05 19:19:24 UTC) #8
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/7b5641ee5ec1f5517924b020ad6265d4ffcaeabd
Cr-Commit-Position: refs/heads/master@{#391865}

Powered by Google App Engine
This is Rietveld 408576698