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

Issue 293393010: Move initial metrics gathering tasks out of MetricsService. (Closed)

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

Description

Move initial metrics gathering tasks out of MetricsService. This CL moves the coordination of initial metrics gathering tasks out of MetricsService and into ChromeMetricsServiceClient. As part of this move, it also does the following: - Moves registration of metrics providers from MetricsService to ChromeMetricsServiceClient - Moves registration of prefs for individual metrics providers from MetricsService to ChromeMetricsServiceClient - Eliminates MetricsService being a TrackingSynchronizerObserver in favor of ChromeMetricsServiceClient being a TrackingSynchronizerObserver BUG=374218, 375776, 376288 TBR=thakis Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275753

Patch Set 1 #

Patch Set 2 : Fixes #

Total comments: 5

Patch Set 3 : Rebase #

Total comments: 8

Patch Set 4 : Response to review #

Total comments: 27

Patch Set 5 : Response to review #

Total comments: 6

Patch Set 6 : Response to review #

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+211 lines, -195 lines) Patch
M chrome/browser/metrics/chrome_metrics_service_client.h View 1 2 3 4 5 6 chunks +54 lines, -2 lines 0 comments Download
M chrome/browser/metrics/chrome_metrics_service_client.cc View 1 2 3 4 5 6 chunks +131 lines, -20 lines 0 comments Download
M chrome/browser/metrics/metrics_service.h View 1 2 3 4 6 chunks +4 lines, -38 lines 0 comments Download
M chrome/browser/metrics/metrics_service.cc View 1 2 3 4 5 6 8 chunks +2 lines, -121 lines 0 comments Download
M chrome/browser/metrics/metrics_services_manager.h View 1 2 3 4 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/metrics/metrics_services_manager.cc View 1 2 3 4 3 chunks +12 lines, -11 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 3 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
blundell
Mr. Svitkine and Mr. Sherman, I started pulling on one thread and it turned out ...
6 years, 7 months ago (2014-05-27 15:55:49 UTC) #1
Alexei Svitkine (slow)
https://codereview.chromium.org/293393010/diff/20001/chrome/browser/metrics/metrics_service.h File chrome/browser/metrics/metrics_service.h (right): https://codereview.chromium.org/293393010/diff/20001/chrome/browser/metrics/metrics_service.h#newcode234 chrome/browser/metrics/metrics_service.h:234: void RecordProfilerData( Hmm, I'm not super keen on exposing ...
6 years, 7 months ago (2014-05-27 20:49:59 UTC) #2
blundell
On 2014/05/27 20:49:59, Alexei Svitkine wrote: > https://codereview.chromium.org/293393010/diff/20001/chrome/browser/metrics/metrics_service.h > File chrome/browser/metrics/metrics_service.h (right): > > https://codereview.chromium.org/293393010/diff/20001/chrome/browser/metrics/metrics_service.h#newcode234 ...
6 years, 6 months ago (2014-05-28 13:43:56 UTC) #3
Alexei Svitkine (slow)
On 2014/05/28 13:43:56, blundell wrote: > On 2014/05/27 20:49:59, Alexei Svitkine wrote: > > > ...
6 years, 6 months ago (2014-05-28 14:48:57 UTC) #4
blundell
On 2014/05/28 14:48:57, Alexei Svitkine wrote: > On 2014/05/28 13:43:56, blundell wrote: > > On ...
6 years, 6 months ago (2014-05-28 14:55:09 UTC) #5
Alexei Svitkine (slow)
On 2014/05/28 14:55:09, blundell wrote: > On 2014/05/28 14:48:57, Alexei Svitkine wrote: > > On ...
6 years, 6 months ago (2014-05-28 15:07:12 UTC) #6
blundell
On 2014/05/28 15:07:12, Alexei Svitkine wrote: > On 2014/05/28 14:55:09, blundell wrote: > > On ...
6 years, 6 months ago (2014-05-28 15:09:38 UTC) #7
Alexei Svitkine (slow)
On 2014/05/28 15:09:38, blundell wrote: > On 2014/05/28 15:07:12, Alexei Svitkine wrote: > > On ...
6 years, 6 months ago (2014-05-28 15:14:45 UTC) #8
blundell
I split the ProfilerMetricsProvider change into to its own CL and shifted out a couple ...
6 years, 6 months ago (2014-06-01 20:12:53 UTC) #9
Alexei Svitkine (slow)
https://codereview.chromium.org/293393010/diff/40001/chrome/browser/metrics/chrome_metrics_service_client.cc File chrome/browser/metrics/chrome_metrics_service_client.cc (right): https://codereview.chromium.org/293393010/diff/40001/chrome/browser/metrics/chrome_metrics_service_client.cc#newcode149 chrome/browser/metrics/chrome_metrics_service_client.cc:149: #endif // defined(OS_ANDROID) nit: Make it consistent - either ...
6 years, 6 months ago (2014-06-02 13:54:03 UTC) #10
blundell
https://codereview.chromium.org/293393010/diff/40001/chrome/browser/metrics/chrome_metrics_service_client.cc File chrome/browser/metrics/chrome_metrics_service_client.cc (right): https://codereview.chromium.org/293393010/diff/40001/chrome/browser/metrics/chrome_metrics_service_client.cc#newcode149 chrome/browser/metrics/chrome_metrics_service_client.cc:149: #endif // defined(OS_ANDROID) On 2014/06/02 13:54:03, Alexei Svitkine wrote: ...
6 years, 6 months ago (2014-06-02 14:24:46 UTC) #11
Ilya Sherman
https://codereview.chromium.org/293393010/diff/80001/chrome/browser/metrics/chrome_metrics_service_client.cc File chrome/browser/metrics/chrome_metrics_service_client.cc (right): https://codereview.chromium.org/293393010/diff/80001/chrome/browser/metrics/chrome_metrics_service_client.cc#newcode153 chrome/browser/metrics/chrome_metrics_service_client.cc:153: #endif nit: "// defined(ENABLE_PLUGINS)" https://codereview.chromium.org/293393010/diff/80001/chrome/browser/metrics/chrome_metrics_service_client.cc#newcode163 chrome/browser/metrics/chrome_metrics_service_client.cc:163: new ExtensionsMetricsProvider(metrics_state_manager_))); Huh. ...
6 years, 6 months ago (2014-06-02 21:52:37 UTC) #12
blundell
Thanks, PTAL! The CLs on which this is dependent have now all landed, so this ...
6 years, 6 months ago (2014-06-06 13:06:29 UTC) #13
Alexei Svitkine (slow)
LGTM % comment, thanks! https://codereview.chromium.org/293393010/diff/90001/chrome/browser/metrics/chrome_metrics_service_client.cc File chrome/browser/metrics/chrome_metrics_service_client.cc (right): https://codereview.chromium.org/293393010/diff/90001/chrome/browser/metrics/chrome_metrics_service_client.cc#newcode267 chrome/browser/metrics/chrome_metrics_service_client.cc:267: void ChromeMetricsServiceClient::LogPluginLoadingError( Please define methods ...
6 years, 6 months ago (2014-06-06 13:23:18 UTC) #14
Ilya Sherman
Thanks, Colin. I'm still worried about the potential behavioral change around the call to GetChromeMetricsServiceClient(). ...
6 years, 6 months ago (2014-06-06 19:04:19 UTC) #15
Ilya Sherman
Nevermind, I understand what you were saying now. LGTM with my other two nitty comments ...
6 years, 6 months ago (2014-06-06 19:07:21 UTC) #16
Alexei Svitkine (slow)
https://codereview.chromium.org/293393010/diff/80001/chrome/browser/metrics/metrics_services_manager.h File chrome/browser/metrics/metrics_services_manager.h (right): https://codereview.chromium.org/293393010/diff/80001/chrome/browser/metrics/metrics_services_manager.h#newcode54 chrome/browser/metrics/metrics_services_manager.h:54: ChromeMetricsServiceClient* GetChromeMetricsServiceClient(); On 2014/06/06 19:04:18, Ilya Sherman wrote: > ...
6 years, 6 months ago (2014-06-06 19:07:30 UTC) #17
blundell
https://codereview.chromium.org/293393010/diff/90001/chrome/browser/metrics/chrome_metrics_service_client.cc File chrome/browser/metrics/chrome_metrics_service_client.cc (right): https://codereview.chromium.org/293393010/diff/90001/chrome/browser/metrics/chrome_metrics_service_client.cc#newcode167 chrome/browser/metrics/chrome_metrics_service_client.cc:167: On 2014/06/06 19:04:18, Ilya Sherman wrote: > nit: I ...
6 years, 6 months ago (2014-06-08 09:15:55 UTC) #18
blundell
TBR=thakis for //chrome/browser/browser_prefs.cc
6 years, 6 months ago (2014-06-08 09:16:33 UTC) #19
blundell
The CQ bit was checked by blundell@chromium.org
6 years, 6 months ago (2014-06-08 09:16:38 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/blundell@chromium.org/293393010/130001
6 years, 6 months ago (2014-06-08 09:17:35 UTC) #21
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium ...
6 years, 6 months ago (2014-06-08 09:42:38 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-08 09:44:11 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/mac_chromium_compile_dbg/builds/30295)
6 years, 6 months ago (2014-06-08 09:44:12 UTC) #24
blundell
The CQ bit was checked by blundell@chromium.org
6 years, 6 months ago (2014-06-08 11:33:01 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/blundell@chromium.org/293393010/150001
6 years, 6 months ago (2014-06-08 11:33:38 UTC) #26
commit-bot: I haz the power
6 years, 6 months ago (2014-06-08 16:50:40 UTC) #27
Message was sent while issue was closed.
Change committed as 275753

Powered by Google App Engine
This is Rietveld 408576698