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

Issue 1000203007: Set a "metrics_client_id" crash key instead of "guid" on Mac OS X (Closed)

Created:
5 years, 9 months ago by Mark Mentovai
Modified:
5 years, 9 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Set a "metrics_client_id" crash key instead of "guid" on Mac OS X. Crashpad maintains the client ID on its own and is responsible for sending this form parameter to the Breakpad server during report upload. When using Crashpad as its crash-reporting implementation, Chrome does not need to set this crash key. When Chrome does attempt to set this crash key on its own, crashpad_handler produces these harmless log messages: [mmdd/hhmmss:WARNING:crash_report_upload_thread.cc(44)] duplicate key guid, discarding value 0123456789ABCDEF0123456789ABCDEF There are valid reasons to provide the metrics client ID along with the crash report, so this is placed in a distinct crash key, "metrics_client_id". BUG=466964 R=cpu@chromium.org, isherman@chromium.org, rsesek@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/c67fa64ff088022c1149f50ca69a1b173167afe5

Patch Set 1 #

Patch Set 2 : Address review feedback #

Patch Set 3 : breakpad_mac.mm too #

Patch Set 4 : Provide uma_client_id #

Patch Set 5 : Allow metrics_client_id to be cleared #

Patch Set 6 : Rebase, don't include useless switches #

Total comments: 2

Patch Set 7 : Address review feedback (isherman) #

Total comments: 1

Patch Set 8 : Remove sentencelet #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -22 lines) Patch
M chrome/app/chrome_crash_reporter_client.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/app/chrome_crash_reporter_client.cc View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M chrome/app/chrome_main_delegate.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 2 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/metrics/chrome_metrics_service_client.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/metrics/chrome_metrics_service_client.cc View 1 2 3 4 5 6 1 chunk +5 lines, -1 line 0 comments Download
M chrome/common/child_process_logging_win.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/crash_keys.h View 1 2 3 4 5 6 7 2 chunks +14 lines, -5 lines 0 comments Download
M chrome/common/crash_keys.cc View 1 2 3 4 5 6 4 chunks +43 lines, -2 lines 0 comments Download
M chromecast/browser/metrics/cast_metrics_service_client.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chromecast/browser/metrics/cast_metrics_service_client.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M components/crash/app/breakpad_mac.mm View 1 2 1 chunk +0 lines, -7 lines 0 comments Download
M components/crash/app/crash_reporter_client.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M components/crash/app/crash_reporter_client.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M components/crash/app/crashpad_mac.mm View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download
M components/metrics/metrics_service.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M components/metrics/metrics_service_client.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M components/metrics/test_metrics_service_client.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M components/metrics/test_metrics_service_client.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (8 generated)
Mark Mentovai
How convenient, you OWN these files.
5 years, 9 months ago (2015-03-13 20:36:13 UTC) #2
Robert Sesek
I think it'd be best to #if the function definition out too, rather than silently ...
5 years, 9 months ago (2015-03-13 20:47:58 UTC) #3
Mark Mentovai
It’s called from chrome_crash_reporter_client.cc too, and this is what you get when you pull on ...
5 years, 9 months ago (2015-03-13 21:00:28 UTC) #4
Robert Sesek
LGTM
5 years, 9 months ago (2015-03-13 21:07:54 UTC) #5
Mark Mentovai
Updated to pull the call out of breakpad_mac.mm (unused now that Mac Chrome isn’t using ...
5 years, 9 months ago (2015-03-13 21:18:52 UTC) #6
Mark Mentovai
cpu for OWNERS
5 years, 9 months ago (2015-03-13 21:44:29 UTC) #8
cpu_(ooo_6.6-7.5)
dang I and going to lgtm this but if it was me I would have ...
5 years, 9 months ago (2015-03-14 02:19:10 UTC) #9
Mark Mentovai
I’m waiting to land this to see what the outcome of the UMA/crash reporting client ...
5 years, 9 months ago (2015-03-17 13:29:48 UTC) #10
Mark Mentovai
Let’s do a re-review of this now that we have a direction. The new strategy ...
5 years, 9 months ago (2015-03-23 19:31:50 UTC) #15
Ilya Sherman
Thanks, Mark. Metrics changes LGTM % a couple of nits: https://codereview.chromium.org/1000203007/diff/160001/chrome/browser/metrics/chrome_metrics_service_client.cc File chrome/browser/metrics/chrome_metrics_service_client.cc (right): https://codereview.chromium.org/1000203007/diff/160001/chrome/browser/metrics/chrome_metrics_service_client.cc#newcode193 ...
5 years, 9 months ago (2015-03-24 00:22:23 UTC) #16
Mark Mentovai
Thank you, Ilya. I took the optional suggestion, too. Updated.
5 years, 9 months ago (2015-03-24 01:30:24 UTC) #18
Ilya Sherman
LGTM, thanks :)
5 years, 9 months ago (2015-03-24 03:52:50 UTC) #19
Robert Sesek
LGTM https://codereview.chromium.org/1000203007/diff/200001/chrome/common/crash_keys.h File chrome/common/crash_keys.h (right): https://codereview.chromium.org/1000203007/diff/200001/chrome/common/crash_keys.h#newcode26 chrome/common/crash_keys.h:26: // dashes before setting the crash key) by ...
5 years, 9 months ago (2015-03-24 13:34:03 UTC) #20
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/c67fa64ff088022c1149f50ca69a1b173167afe5 Cr-Commit-Position: refs/heads/master@{#321996}
5 years, 9 months ago (2015-03-24 14:02:07 UTC) #22
Mark Mentovai
5 years, 9 months ago (2015-03-24 14:02:20 UTC) #23
Message was sent while issue was closed.
Committed patchset #8 (id:240001) manually as
c67fa64ff088022c1149f50ca69a1b173167afe5 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698