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

Issue 308433004: Reduce plugin_metrics_provider_ usage in MetricsService (Closed)

Created:
6 years, 6 months ago by blundell
Modified:
6 years, 6 months ago
CC:
chromium-reviews, jam, Ilya Sherman, jar (doing other things), asvitkine+watch_chromium.org, stuartmorgan+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Reduce plugin_metrics_provider_ usage in MetricsService This CL eliminates MetricsService's call to PluginMetricsProvider::RecordPluginChanges (replaced by a new API on MetricsProvider). It additionally adds a MetricsServicesManager::OnPluginLoadingError() API and has the plugin observer call that API rather than calling MetricsService directly. This change will enable easily moving MetricsService::LogPluginLoadingError() to ChromeMetricsServiceClient once the latter is the class that keeps a weak pointer to the plugin metrics provider. BUG=375776 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274403 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275404

Patch Set 1 #

Total comments: 6

Patch Set 2 : Response to review #

Total comments: 4

Patch Set 3 : Response to review #

Patch Set 4 : Rebase #

Patch Set 5 : Rebase #

Patch Set 6 : Rebase #

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -20 lines) Patch
M chrome/browser/browser_process.h View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_impl.h View 1 2 3 4 5 6 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/browser_process_impl.cc View 1 2 3 4 5 6 2 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/metrics/metrics_service.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/metrics/metrics_service.cc View 1 2 3 4 5 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/metrics/metrics_services_manager.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/metrics/metrics_services_manager.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/metrics/plugin_metrics_provider.h View 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/metrics/plugin_metrics_provider.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/plugins/plugin_observer.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/test/base/testing_browser_process.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/base/testing_browser_process.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M components/metrics/metrics_provider.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 47 (0 generated)
blundell
Split out from https://codereview.chromium.org/293393010/ to reduce the size of that CL
6 years, 6 months ago (2014-05-28 19:24:08 UTC) #1
Alexei Svitkine (slow)
Sorry it took me so long to reply here, but I had/have mixed feelings about ...
6 years, 6 months ago (2014-05-29 20:47:43 UTC) #2
Alexei Svitkine (slow)
https://codereview.chromium.org/308433004/diff/1/chrome/browser/browser_process.h File chrome/browser/browser_process.h (right): https://codereview.chromium.org/308433004/diff/1/chrome/browser/browser_process.h#newcode108 chrome/browser/browser_process.h:108: virtual PluginMetricsProvider* plugin_metrics_provider() = 0; On 2014/05/29 20:47:44, Alexei ...
6 years, 6 months ago (2014-05-29 20:49:03 UTC) #3
Ilya Sherman
https://codereview.chromium.org/308433004/diff/1/chrome/browser/browser_process.h File chrome/browser/browser_process.h (right): https://codereview.chromium.org/308433004/diff/1/chrome/browser/browser_process.h#newcode108 chrome/browser/browser_process.h:108: virtual PluginMetricsProvider* plugin_metrics_provider() = 0; On 2014/05/29 20:49:03, Alexei ...
6 years, 6 months ago (2014-05-29 21:04:13 UTC) #4
blundell
Thanks, PTAL! https://codereview.chromium.org/308433004/diff/1/chrome/browser/browser_process.h File chrome/browser/browser_process.h (right): https://codereview.chromium.org/308433004/diff/1/chrome/browser/browser_process.h#newcode108 chrome/browser/browser_process.h:108: virtual PluginMetricsProvider* plugin_metrics_provider() = 0; On 2014/05/29 ...
6 years, 6 months ago (2014-05-30 14:42:10 UTC) #5
Alexei Svitkine (slow)
LGTM % nit Thanks! https://codereview.chromium.org/308433004/diff/20001/chrome/browser/metrics/metrics_services_manager.h File chrome/browser/metrics/metrics_services_manager.h (right): https://codereview.chromium.org/308433004/diff/20001/chrome/browser/metrics/metrics_services_manager.h#newcode51 chrome/browser/metrics/metrics_services_manager.h:51: void LogPluginLoadingError(const base::FilePath& plugin_path); Nit: ...
6 years, 6 months ago (2014-05-30 15:21:35 UTC) #6
Ilya Sherman
LGTM2. Please update the CL description, though :) https://codereview.chromium.org/308433004/diff/20001/components/metrics/metrics_provider.h File components/metrics/metrics_provider.h (right): https://codereview.chromium.org/308433004/diff/20001/components/metrics/metrics_provider.h#newcode47 components/metrics/metrics_provider.h:47: // ...
6 years, 6 months ago (2014-05-30 23:12:28 UTC) #7
blundell
https://codereview.chromium.org/308433004/diff/20001/chrome/browser/metrics/metrics_services_manager.h File chrome/browser/metrics/metrics_services_manager.h (right): https://codereview.chromium.org/308433004/diff/20001/chrome/browser/metrics/metrics_services_manager.h#newcode51 chrome/browser/metrics/metrics_services_manager.h:51: void LogPluginLoadingError(const base::FilePath& plugin_path); On 2014/05/30 15:21:35, Alexei Svitkine ...
6 years, 6 months ago (2014-06-01 14:02:16 UTC) #8
blundell
+jochen@ for *browser_process*. Thanks!
6 years, 6 months ago (2014-06-01 14:08:16 UTC) #9
jochen (gone - plz use gerrit)
lgtm
6 years, 6 months ago (2014-06-02 07:03:17 UTC) #10
blundell
The CQ bit was checked by blundell@chromium.org
6 years, 6 months ago (2014-06-02 07:06:33 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/blundell@chromium.org/308433004/60001
6 years, 6 months ago (2014-06-02 07:06:49 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-02 22:33:28 UTC) #13
commit-bot: I haz the power
Change committed as 274403
6 years, 6 months ago (2014-06-03 01:19:51 UTC) #14
tzik
A revert of this CL has been created in https://codereview.chromium.org/314583002/ by tzik@chromium.org. The reason for ...
6 years, 6 months ago (2014-06-03 04:37:37 UTC) #15
blundell
Going to try an unchanged reland, following investigation by earthdok@ on the Asan failures that ...
6 years, 6 months ago (2014-06-04 16:16:20 UTC) #16
blundell
The CQ bit was checked by blundell@chromium.org
6 years, 6 months ago (2014-06-04 16:16:29 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/blundell@chromium.org/308433004/80001
6 years, 6 months ago (2014-06-04 16:17:15 UTC) #18
blundell
Additionally, earthdok@ couldn't repro locally and the linux_browser_asan trybot run that I put through was ...
6 years, 6 months ago (2014-06-04 16:19:11 UTC) #19
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_chromium_gn_compile_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-04 19:50:01 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-04 19:53:56 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_chromium_gn_compile_rel/builds/10482) linux_chromium_gn_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_gn_rel/builds/13307)
6 years, 6 months ago (2014-06-04 19:53:57 UTC) #22
blundell
The CQ bit was checked by blundell@chromium.org
6 years, 6 months ago (2014-06-04 20:41:32 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/blundell@chromium.org/308433004/80001
6 years, 6 months ago (2014-06-04 20:42:38 UTC) #24
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_chromium_gn_compile_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-04 20:49:00 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-04 20:53:50 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_chromium_gn_compile_rel/builds/10532) linux_chromium_gn_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_gn_rel/builds/13360)
6 years, 6 months ago (2014-06-04 20:53:50 UTC) #27
blundell
The CQ bit was checked by blundell@chromium.org
6 years, 6 months ago (2014-06-05 09:35:14 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/blundell@chromium.org/308433004/80001
6 years, 6 months ago (2014-06-05 09:38:44 UTC) #29
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_chromium_gn_compile_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-05 09:43:38 UTC) #30
blundell
The CQ bit was unchecked by blundell@chromium.org
6 years, 6 months ago (2014-06-05 09:46:23 UTC) #31
blundell
The CQ bit was checked by blundell@chromium.org
6 years, 6 months ago (2014-06-05 09:46:50 UTC) #32
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-05 09:47:41 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_chromium_gn_compile_rel/builds/10971) linux_chromium_gn_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_gn_rel/builds/13814)
6 years, 6 months ago (2014-06-05 09:47:41 UTC) #34
blundell
The CQ bit was checked by blundell@chromium.org
6 years, 6 months ago (2014-06-05 09:49:28 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/blundell@chromium.org/308433004/80001
6 years, 6 months ago (2014-06-05 09:50:28 UTC) #36
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-05 15:19:52 UTC) #37
commit-bot: I haz the power
Failed to apply patch for chrome/browser/browser_process.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 6 months ago (2014-06-05 15:19:52 UTC) #38
blundell
The CQ bit was checked by blundell@chromium.org
6 years, 6 months ago (2014-06-05 16:25:20 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/blundell@chromium.org/308433004/100001
6 years, 6 months ago (2014-06-05 16:27:19 UTC) #40
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_chromium_gn_compile_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-05 19:18:48 UTC) #41
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-05 19:24:11 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/71917) linux_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_rel/builds/38887)
6 years, 6 months ago (2014-06-05 19:24:13 UTC) #43
blundell
The CQ bit was checked by blundell@chromium.org
6 years, 6 months ago (2014-06-06 07:50:00 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/blundell@chromium.org/308433004/120001
6 years, 6 months ago (2014-06-06 07:51:41 UTC) #45
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_clang_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-06 11:04:57 UTC) #46
commit-bot: I haz the power
6 years, 6 months ago (2014-06-06 11:22:33 UTC) #47
Message was sent while issue was closed.
Change committed as 275404

Powered by Google App Engine
This is Rietveld 408576698