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 Review URL: https://codereview.chromium.org/301633006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273820 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment