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

Issue 11884042: Fix for a crasher when starting a renderer. (Closed)

Created:
7 years, 11 months ago by Jay Civelli
Modified:
7 years, 11 months ago
Reviewers:
jam
CC:
chromium-reviews
Visibility:
Public.

Description

Fix for a crasher when starting a renderer. A crash dump from the field reports that the CrashDumpManager in ChromeContentBrowserClient is not initialized when GetAdditionalMappedFilesForChildProcess is called. This is because the CrashDumpManager is initialized when a RenderProcessHost is created, but it could be the case that a BrowserChildProcessHost gets created first and calls GetAdditionalMappedFilesForChildProcess before any RenderProcessHost was created. Making the CrashDumpManager a singleton initialized early on to prevent this crasher. BUG=163456 TEST=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=177110

Patch Set 1 #

Patch Set 2 : Removed unneeded header. #

Total comments: 1

Patch Set 3 : Synced + NULLed in destructor #

Patch Set 4 : Synced #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -23 lines) Patch
M chrome/browser/android/crash_dump_manager.h View 3 chunks +11 lines, -2 lines 0 comments Download
M chrome/browser/android/crash_dump_manager.cc View 1 2 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main_android.h View 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/chrome_browser_main_android.cc View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/chrome_content_browser_client.h View 1 2 chunks +0 lines, -7 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 3 chunks +1 line, -12 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Jay Civelli
Per our discussion, made the CrashDumpManager a singleton owned by the ChromeBrowserMainAndroid.
7 years, 11 months ago (2013-01-15 02:23:47 UTC) #1
jam
lgtm https://codereview.chromium.org/11884042/diff/2001/chrome/browser/android/crash_dump_manager.cc File chrome/browser/android/crash_dump_manager.cc (right): https://codereview.chromium.org/11884042/diff/2001/chrome/browser/android/crash_dump_manager.cc#newcode56 chrome/browser/android/crash_dump_manager.cc:56: CrashDumpManager::~CrashDumpManager() { nit: reset here?
7 years, 11 months ago (2013-01-15 20:36:26 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jcivelli@chromium.org/11884042/13001
7 years, 11 months ago (2013-01-16 00:08:06 UTC) #3
commit-bot: I haz the power
Failed to apply patch for chrome/browser/chrome_browser_main_android.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 11 months ago (2013-01-16 00:08:09 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jcivelli@chromium.org/11884042/17001
7 years, 11 months ago (2013-01-16 02:09:09 UTC) #5
commit-bot: I haz the power
Retried try job too often on win for step(s) compile
7 years, 11 months ago (2013-01-16 04:29:49 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jcivelli@chromium.org/11884042/17001
7 years, 11 months ago (2013-01-16 04:55:06 UTC) #7
commit-bot: I haz the power
7 years, 11 months ago (2013-01-16 09:02:53 UTC) #8
Message was sent while issue was closed.
Change committed as 177110

Powered by Google App Engine
This is Rietveld 408576698