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

Issue 10391175: Add alternative path for breakpad dump location. (Closed)

Created:
8 years, 7 months ago by chrisphan
Modified:
8 years, 7 months ago
CC:
chromium-reviews, Paweł Hajdan Jr., Lei Zhang
Visibility:
Public.

Description

Add alternative path for breakpad dump location. If "BREAKPAD_DUMP_LOCATION" environment variable is set, use this path instead. Currently Mac's breakpad uses this to specify alternative path for breakpad dump location. For Chromebot this allows crashes to be identified with multiple Chrome instances. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=137587

Patch Set 1 #

Patch Set 2 : #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -2 lines) Patch
M page_load_test.cc View 1 2 chunks +12 lines, -2 lines 3 comments Download

Messages

Total messages: 9 (0 generated)
chrisphan1
8 years, 7 months ago (2012-05-16 22:06:15 UTC) #1
cmp
lgtm, +thestig and phajdan in case they're interested
8 years, 7 months ago (2012-05-16 22:21:01 UTC) #2
Lei Zhang
This should be fine, but you'll need the other platforms to honor BREAKPAD_DUMP_LOCATION.
8 years, 7 months ago (2012-05-16 22:28:14 UTC) #3
chrisphan1
On 2012/05/16 22:28:14, Lei Zhang wrote: > This should be fine, but you'll need the ...
8 years, 7 months ago (2012-05-16 22:29:09 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/chrisphan@chromium.org/10391175/3001
8 years, 7 months ago (2012-05-16 22:50:22 UTC) #5
commit-bot: I haz the power
Change committed as 137587
8 years, 7 months ago (2012-05-17 00:47:19 UTC) #6
Paweł Hajdan Jr.
https://chromiumcodereview.appspot.com/10391175/diff/3001/page_load_test.cc File page_load_test.cc (right): https://chromiumcodereview.appspot.com/10391175/diff/3001/page_load_test.cc#newcode643 page_load_test.cc:643: PathService::Get(chrome::DIR_CRASH_DUMPS, &crash_dumps_dir_path_); Wait, shouldn't you modify the PathService code ...
8 years, 7 months ago (2012-05-17 14:54:45 UTC) #7
chrisphan1
https://chromiumcodereview.appspot.com/10391175/diff/3001/page_load_test.cc File page_load_test.cc (right): https://chromiumcodereview.appspot.com/10391175/diff/3001/page_load_test.cc#newcode643 page_load_test.cc:643: PathService::Get(chrome::DIR_CRASH_DUMPS, &crash_dumps_dir_path_); On 2012/05/17 14:54:45, Paweł Hajdan Jr. wrote: ...
8 years, 7 months ago (2012-05-17 18:18:54 UTC) #8
Paweł Hajdan Jr.
8 years, 7 months ago (2012-05-21 08:30:57 UTC) #9
https://chromiumcodereview.appspot.com/10391175/diff/3001/page_load_test.cc
File page_load_test.cc (right):

https://chromiumcodereview.appspot.com/10391175/diff/3001/page_load_test.cc#n...
page_load_test.cc:643: PathService::Get(chrome::DIR_CRASH_DUMPS,
&crash_dumps_dir_path_);
On 2012/05/17 18:18:55, chrisphan1 wrote:
> On 2012/05/17 14:54:45, Paweł Hajdan Jr. wrote:
> > Wait, shouldn't you modify the PathService code for DIR_CRASH_DUMPS to honor
> > BREAKPAD_DUMP_LOCATION?
> > 
> > Putting this logic on the caller side seems brittle, and may even cause code
> > duplication.
> 
> DIR_CRASH_DUMPS gets modified in the breakpad at the moment.  Should I go
ahead
> and modified here instead?

Could you explain more? I suggested modifying PathService code for
DIR_CRASH_DUMPS, instead of patching it in just _one_ place that calls
PathService (and other users of DIR_CRASH_DUMPS do not get this change).

Powered by Google App Engine
This is Rietveld 408576698