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

Issue 301633006: Move ChromeOS hardware class init out of MetricsService. (Closed)

Created:
6 years, 6 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 ChromeOS hardware class init out of MetricsService. This CL moves the initialization of the hardware class on ChromeOS out of MetricsService and into ChromeOSMetricsProvider via ChromeMetricsServiceClient. MetricsService now pass |OnInitTaskGotHardwareClass()| as the callback to ChromeMetricsServiceClient::StartGatheringMetrics(). ChromeMetricsServiceClient::StartGatheringMetrics() posts a task to the FILE thread calling ChromeMetricsServiceClient::InitTaskGetHardwareClass(). The latter function calls into ChromeOSMetricsProvider when on ChromeOS and directly calls the callback passed to it on other platforms. A followup CL will move the rest of the embedder-specific initial metrics gathering flow out of MetricsService. BUG=375776 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273820

Patch Set 1 #

Total comments: 3

Patch Set 2 : Nits #

Patch Set 3 : Build fix + response to review #

Total comments: 2

Patch Set 4 : Response to review #

Total comments: 4

Patch Set 5 : Response to review #

Total comments: 4

Patch Set 6 : Response to review #

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -76 lines) Patch
M chrome/browser/metrics/chrome_metrics_service_client.h View 1 2 3 4 5 6 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/metrics/chrome_metrics_service_client.cc View 1 2 3 4 5 6 6 chunks +35 lines, -4 lines 0 comments Download
M chrome/browser/metrics/chromeos_metrics_provider.h View 1 2 3 4 5 6 4 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/metrics/chromeos_metrics_provider.cc View 1 2 3 4 5 6 4 chunks +23 lines, -1 line 0 comments Download
M chrome/browser/metrics/chromeos_metrics_provider_unittest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/metrics/metrics_log.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/metrics/metrics_service.h View 1 2 3 4 5 6 2 chunks +4 lines, -13 lines 0 comments Download
M chrome/browser/metrics/metrics_service.cc View 1 2 3 4 5 6 7 chunks +13 lines, -49 lines 0 comments Download
M components/metrics/metrics_log_base.h View 1 2 3 4 1 chunk +0 lines, -5 lines 0 comments Download
M components/metrics/metrics_log_base_unittest.cc View 1 2 3 4 2 chunks +0 lines, -3 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
blundell
https://codereview.chromium.org/301633006/diff/1/chrome/browser/metrics/metrics_service.cc File chrome/browser/metrics/metrics_service.cc (left): https://codereview.chromium.org/301633006/diff/1/chrome/browser/metrics/metrics_service.cc#oldcode893 chrome/browser/metrics/metrics_service.cc:893: log_manager_.current_log()->set_hardware_class(hardware_class_); Two questions here: (1) The timing of these ...
6 years, 6 months ago (2014-05-27 13:14:19 UTC) #1
Alexei Svitkine (slow)
https://codereview.chromium.org/301633006/diff/1/chrome/browser/metrics/metrics_service.cc File chrome/browser/metrics/metrics_service.cc (left): https://codereview.chromium.org/301633006/diff/1/chrome/browser/metrics/metrics_service.cc#oldcode893 chrome/browser/metrics/metrics_service.cc:893: log_manager_.current_log()->set_hardware_class(hardware_class_); On 2014/05/27 13:14:19, blundell wrote: > Two questions ...
6 years, 6 months ago (2014-05-27 13:56:36 UTC) #2
blundell
https://codereview.chromium.org/301633006/diff/1/chrome/browser/metrics/metrics_service.cc File chrome/browser/metrics/metrics_service.cc (left): https://codereview.chromium.org/301633006/diff/1/chrome/browser/metrics/metrics_service.cc#oldcode893 chrome/browser/metrics/metrics_service.cc:893: log_manager_.current_log()->set_hardware_class(hardware_class_); On 2014/05/27 13:56:37, Alexei Svitkine wrote: > On ...
6 years, 6 months ago (2014-05-27 14:58:10 UTC) #3
Alexei Svitkine (slow)
https://codereview.chromium.org/301633006/diff/60001/chrome/browser/metrics/chrome_metrics_service_client.cc File chrome/browser/metrics/chrome_metrics_service_client.cc (right): https://codereview.chromium.org/301633006/diff/60001/chrome/browser/metrics/chrome_metrics_service_client.cc#newcode353 chrome/browser/metrics/chrome_metrics_service_client.cc:353: content::BrowserThread::FILE, I think this should be an implementation detail ...
6 years, 6 months ago (2014-05-27 15:31:06 UTC) #4
blundell
https://codereview.chromium.org/301633006/diff/60001/chrome/browser/metrics/chrome_metrics_service_client.cc File chrome/browser/metrics/chrome_metrics_service_client.cc (right): https://codereview.chromium.org/301633006/diff/60001/chrome/browser/metrics/chrome_metrics_service_client.cc#newcode353 chrome/browser/metrics/chrome_metrics_service_client.cc:353: content::BrowserThread::FILE, On 2014/05/27 15:31:07, Alexei Svitkine wrote: > I ...
6 years, 6 months ago (2014-05-28 15:42:37 UTC) #5
Alexei Svitkine (slow)
https://codereview.chromium.org/301633006/diff/100001/chrome/browser/metrics/chromeos_metrics_provider.cc File chrome/browser/metrics/chromeos_metrics_provider.cc (right): https://codereview.chromium.org/301633006/diff/100001/chrome/browser/metrics/chromeos_metrics_provider.cc#newcode148 chrome/browser/metrics/chromeos_metrics_provider.cc:148: callback)); Can you avoid passing the two params by ...
6 years, 6 months ago (2014-05-28 15:50:10 UTC) #6
blundell
https://codereview.chromium.org/301633006/diff/100001/chrome/browser/metrics/chromeos_metrics_provider.cc File chrome/browser/metrics/chromeos_metrics_provider.cc (right): https://codereview.chromium.org/301633006/diff/100001/chrome/browser/metrics/chromeos_metrics_provider.cc#newcode148 chrome/browser/metrics/chromeos_metrics_provider.cc:148: callback)); On 2014/05/28 15:50:10, Alexei Svitkine wrote: > Can ...
6 years, 6 months ago (2014-05-28 18:39:34 UTC) #7
Alexei Svitkine (slow)
Looks great, just a few more nits. https://codereview.chromium.org/301633006/diff/120001/chrome/browser/metrics/chrome_metrics_service_client.cc File chrome/browser/metrics/chrome_metrics_service_client.cc (right): https://codereview.chromium.org/301633006/diff/120001/chrome/browser/metrics/chrome_metrics_service_client.cc#newcode119 chrome/browser/metrics/chrome_metrics_service_client.cc:119: client->metrics_service_.reset(new MetricsService( ...
6 years, 6 months ago (2014-05-28 18:45:57 UTC) #8
blundell
https://codereview.chromium.org/301633006/diff/120001/chrome/browser/metrics/chrome_metrics_service_client.cc File chrome/browser/metrics/chrome_metrics_service_client.cc (right): https://codereview.chromium.org/301633006/diff/120001/chrome/browser/metrics/chrome_metrics_service_client.cc#newcode119 chrome/browser/metrics/chrome_metrics_service_client.cc:119: client->metrics_service_.reset(new MetricsService( On 2014/05/28 18:45:57, Alexei Svitkine wrote: > ...
6 years, 6 months ago (2014-05-28 18:59:48 UTC) #9
Alexei Svitkine (slow)
LGTM
6 years, 6 months ago (2014-05-28 19:04:17 UTC) #10
blundell
The CQ bit was checked by blundell@chromium.org
6 years, 6 months ago (2014-05-29 11:54:23 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/301633006/160001
6 years, 6 months ago (2014-05-29 11:56:28 UTC) #12
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-05-29 12:22:58 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-29 12:27:54 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_dbg_simulator/builds/156250) ios_rel_device on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_rel_device/builds/145830) ios_rel_device_ninja ...
6 years, 6 months ago (2014-05-29 12:27:54 UTC) #15
blundell
The CQ bit was checked by blundell@chromium.org
6 years, 6 months ago (2014-05-30 05:46:09 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/blundell@chromium.org/301633006/160001
6 years, 6 months ago (2014-05-30 05:48:12 UTC) #17
blundell
The CQ bit was checked by blundell@chromium.org
6 years, 6 months ago (2014-05-30 08:48:37 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/blundell@chromium.org/301633006/180001
6 years, 6 months ago (2014-05-30 08:49:40 UTC) #19
commit-bot: I haz the power
6 years, 6 months ago (2014-05-30 13:24:24 UTC) #20
Message was sent while issue was closed.
Change committed as 273820

Powered by Google App Engine
This is Rietveld 408576698