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

Issue 13414007: Report disabled plugin in CreatePlugin. (Closed)

Created:
7 years, 8 months ago by xhwang
Modified:
7 years, 8 months ago
Reviewers:
Bernhard Bauer, jam, ddorwin
CC:
chromium-reviews
Visibility:
Public.

Description

Report disabled plugin in CreatePlugin. Currently we only get stats about missing plugins (including unregistered plugin and missing plugin file). It is also interesting to know how many plugin creation failed because it is disabled. User may forget that he/she disabled a particular plugin and he/she doesn't get an info bar in this case, which could cause confusion. In this CL: - Rename MissingPluginReporter to PluginUMAReporter. - Add ReportPluginDisabled function. - Call ReportPluginDisabled function if the plugin is disabled in CreatePlugin. - Refactor PluginUMATest to remove duplicate code. BUG=226107 TEST=Unittests pass. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=192652

Patch Set 1 #

Total comments: 3

Patch Set 2 : unittest updated #

Total comments: 13

Patch Set 3 : resolve comments. #

Total comments: 2

Patch Set 4 : remove TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -260 lines) Patch
M chrome/renderer/chrome_content_renderer_client.cc View 1 3 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/renderer/plugins/plugin_placeholder.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/plugins/plugin_uma.h View 1 2 4 chunks +20 lines, -10 lines 0 comments Download
M chrome/renderer/plugins/plugin_uma.cc View 1 2 5 chunks +53 lines, -38 lines 0 comments Download
M chrome/renderer/plugins/plugin_uma_unittest.cc View 1 2 1 chunk +89 lines, -209 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
xhwang
PTAL https://codereview.chromium.org/13414007/diff/1/chrome/renderer/plugins/plugin_uma_unittest.cc File chrome/renderer/plugins/plugin_uma_unittest.cc (right): https://codereview.chromium.org/13414007/diff/1/chrome/renderer/plugins/plugin_uma_unittest.cc#newcode36 chrome/renderer/plugins/plugin_uma_unittest.cc:36: EXPECT_CALL(*sender_mock_, SendPluginUMA(PluginUMAReporter::DISABLED_PLUGIN, DISABLED_PLUGIN is tested here!
7 years, 8 months ago (2013-04-03 18:50:45 UTC) #1
Bernhard Bauer
LGTM, with a suggestion for more cleanup in the test (depending on how you feel ...
7 years, 8 months ago (2013-04-03 19:08:42 UTC) #2
xhwang
unittest updated. PTAL! Sorry for the rebase noise in chrome_content_renderer_client.cc. https://codereview.chromium.org/13414007/diff/1/chrome/renderer/plugins/plugin_uma_unittest.cc File chrome/renderer/plugins/plugin_uma_unittest.cc (right): https://codereview.chromium.org/13414007/diff/1/chrome/renderer/plugins/plugin_uma_unittest.cc#newcode49 ...
7 years, 8 months ago (2013-04-04 17:28:38 UTC) #3
ddorwin
LGTM % nits. I'll defer to bauerb on the test changes. I also have some ...
7 years, 8 months ago (2013-04-04 19:09:50 UTC) #4
Bernhard Bauer
On 2013/04/04 17:28:38, xhwang wrote: > unittest updated. PTAL! > > Sorry for the rebase ...
7 years, 8 months ago (2013-04-04 21:14:31 UTC) #5
xhwang
comment mostly resolved. PTAL https://codereview.chromium.org/13414007/diff/13001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/13414007/diff/13001/chrome/renderer/chrome_content_renderer_client.cc#newcode514 chrome/renderer/chrome_content_renderer_client.cc:514: On 2013/04/04 21:14:31, Bernhard Bauer ...
7 years, 8 months ago (2013-04-04 23:10:33 UTC) #6
ddorwin
Thanks. My issues are addressed. https://codereview.chromium.org/13414007/diff/23001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/13414007/diff/23001/chrome/renderer/chrome_content_renderer_client.cc#newcode525 chrome/renderer/chrome_content_renderer_client.cc:525: // TODO(xhwang): Distinguish between ...
7 years, 8 months ago (2013-04-04 23:56:47 UTC) #7
xhwang
https://codereview.chromium.org/13414007/diff/23001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/13414007/diff/23001/chrome/renderer/chrome_content_renderer_client.cc#newcode525 chrome/renderer/chrome_content_renderer_client.cc:525: // TODO(xhwang): Distinguish between kNotFound and kBrowserPluginMimeType. On 2013/04/04 ...
7 years, 8 months ago (2013-04-05 01:00:24 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/13414007/40001
7 years, 8 months ago (2013-04-05 01:00:38 UTC) #9
commit-bot: I haz the power
Presubmit check for 13414007-40001 failed and returned exit status 1. INFO:root:Found 5 file(s). Running presubmit ...
7 years, 8 months ago (2013-04-05 01:00:44 UTC) #10
xhwang
jam@: could you please do an owners review on chrome/renderer/chrome_content_renderer_client.cc
7 years, 8 months ago (2013-04-05 01:13:46 UTC) #11
jam
lgtm
7 years, 8 months ago (2013-04-05 17:58:08 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/13414007/40001
7 years, 8 months ago (2013-04-05 18:04:18 UTC) #13
commit-bot: I haz the power
7 years, 8 months ago (2013-04-05 23:54:17 UTC) #14
Message was sent while issue was closed.
Change committed as 192652

Powered by Google App Engine
This is Rietveld 408576698