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

Issue 1259493003: Treat PPAPI disconnect as a crash for plugin metrics. (Closed)

Created:
5 years, 4 months ago by Will Harris
Modified:
5 years, 4 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Treat PPAPI disconnect as a crash for plugin metrics. This normalizes the behavior the user sees, which is a IDS_PLUGIN_CRASHED_PROMPT infobar, with the metrics reported by PluginMetricsProvider - which was only recording a crash for when the process terminated with TERMINATION_STATUS_PROCESS_CRASHED or TERMINATION_STATUS_ABNORMAL_TERMINATION. Each time the infobar pops, there should now be a plugin crash recorded in the SystemProfile. BUG=509139 TEST=manual, see bug Committed: https://crrev.com/ba99407642c5f7306c3a3edc0de59ad17db821ff Cr-Commit-Position: refs/heads/master@{#341566}

Patch Set 1 #

Patch Set 2 : add tests #

Total comments: 1

Patch Set 3 : more realistic test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -1 line) Patch
M chrome/browser/metrics/plugin_metrics_provider.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/metrics/plugin_metrics_provider.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/metrics/plugin_metrics_provider_unittest.cc View 1 2 2 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 13 (2 generated)
Will Harris
PTAL
5 years, 4 months ago (2015-07-31 16:29:02 UTC) #2
Alexei Svitkine (slow)
Could you also add a test?
5 years, 4 months ago (2015-07-31 16:42:33 UTC) #3
Will Harris
On 2015/07/31 16:42:33, Alexei Svitkine wrote: > Could you also add a test? Done, sorry ...
5 years, 4 months ago (2015-08-03 16:51:30 UTC) #4
Alexei Svitkine (slow)
https://codereview.chromium.org/1259493003/diff/20001/chrome/browser/metrics/plugin_metrics_provider_unittest.cc File chrome/browser/metrics/plugin_metrics_provider_unittest.cc (right): https://codereview.chromium.org/1259493003/diff/20001/chrome/browser/metrics/plugin_metrics_provider_unittest.cc#newcode177 chrome/browser/metrics/plugin_metrics_provider_unittest.cc:177: provider.BrowserChildProcessCrashed(child_process_data, 2); Hmm, is this a realistic scenario? Seems ...
5 years, 4 months ago (2015-08-03 16:57:07 UTC) #5
Will Harris
On 2015/08/03 16:57:07, Alexei Svitkine wrote: > https://codereview.chromium.org/1259493003/diff/20001/chrome/browser/metrics/plugin_metrics_provider_unittest.cc > File chrome/browser/metrics/plugin_metrics_provider_unittest.cc (right): > > https://codereview.chromium.org/1259493003/diff/20001/chrome/browser/metrics/plugin_metrics_provider_unittest.cc#newcode177 ...
5 years, 4 months ago (2015-08-03 17:01:49 UTC) #6
Alexei Svitkine (slow)
That sounds good! On Mon, Aug 3, 2015 at 1:01 PM, <wfh@chromium.org> wrote: > On ...
5 years, 4 months ago (2015-08-03 17:03:17 UTC) #7
Will Harris
done. PTAL
5 years, 4 months ago (2015-08-03 17:08:24 UTC) #8
Alexei Svitkine (slow)
lgtm
5 years, 4 months ago (2015-08-03 17:11:05 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1259493003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1259493003/40001
5 years, 4 months ago (2015-08-03 17:13:37 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 4 months ago (2015-08-03 18:43:02 UTC) #12
commit-bot: I haz the power
5 years, 4 months ago (2015-08-03 18:43:38 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/ba99407642c5f7306c3a3edc0de59ad17db821ff
Cr-Commit-Position: refs/heads/master@{#341566}

Powered by Google App Engine
This is Rietveld 408576698