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

Issue 11778025: Decouple loading of channel info and the rest of machine statistics. (Closed)

Created:
7 years, 11 months ago by hshi1
Modified:
7 years, 11 months ago
CC:
chromium-reviews, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Decouple loading of channel info and the rest of machine statistics. Related CL: crrev.com/173507 - that CL calls StatisticsProvider::Init() in PreEarlyInitialization stage to obtain channel info early. However it also has a side-effect to load machine statistics early. After this CL we start to observe that sometimes the crossystem tool hangs. Ideally the tool hang should be root caused but it is timing sensitive and also extremely rare. The current CL makes StatisticsProvider::StartLoadingMachineStatistics() a separate and explicit call, so that the crossystem tool can be invoked later at PostBrowserStart stage. Hopefully by restoring the timing we can eliminate the tool hang. BUG=167671 TEST=CQ, manually verified that machine statistics is still available under chrome://settings in the "bios_info" section. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175434

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add more comments, DCHECK. #

Total comments: 2

Patch Set 3 : Another DCHECK. #

Patch Set 4 : Rebase at 175372. #

Patch Set 5 : Fix build error in unit tests - need to declare the mock virtual function. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -8 lines) Patch
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/system/mock_statistics_provider.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/system/statistics_provider.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/system/statistics_provider.cc View 1 2 6 chunks +12 lines, -8 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
hshi1
Please take a look. This CL intends to amend https://chromiumcodereview.appspot.com/11549025 to restore the timing when ...
7 years, 11 months ago (2013-01-07 19:21:40 UTC) #1
Alexei Svitkine (slow)
Seems reasonable. Please add a comment explaining why it's loaded later. https://codereview.chromium.org/11778025/diff/1/chrome/browser/chromeos/system/statistics_provider.cc File chrome/browser/chromeos/system/statistics_provider.cc (right): ...
7 years, 11 months ago (2013-01-07 19:24:06 UTC) #2
hshi1
https://codereview.chromium.org/11778025/diff/1/chrome/browser/chromeos/system/statistics_provider.cc File chrome/browser/chromeos/system/statistics_provider.cc (right): https://codereview.chromium.org/11778025/diff/1/chrome/browser/chromeos/system/statistics_provider.cc#newcode169 chrome/browser/chromeos/system/statistics_provider.cc:169: void StatisticsProviderImpl::StartLoadingMachineStatistics() { On 2013/01/07 19:24:06, Alexei Svitkine wrote: ...
7 years, 11 months ago (2013-01-07 19:32:06 UTC) #3
Alexei Svitkine (slow)
LGTM
7 years, 11 months ago (2013-01-07 19:33:45 UTC) #4
Alexei Svitkine (slow)
https://codereview.chromium.org/11778025/diff/16001/chrome/browser/chromeos/system/statistics_provider.cc File chrome/browser/chromeos/system/statistics_provider.cc (right): https://codereview.chromium.org/11778025/diff/16001/chrome/browser/chromeos/system/statistics_provider.cc#newcode172 chrome/browser/chromeos/system/statistics_provider.cc:172: void StatisticsProviderImpl::StartLoadingMachineStatistics() { Actually, can you also add DCHECK(initialized_); ...
7 years, 11 months ago (2013-01-07 19:39:00 UTC) #5
hshi1
Adding Daniel for owner review, since Nikita is offline right now. Thanks! https://codereview.chromium.org/11778025/diff/16001/chrome/browser/chromeos/system/statistics_provider.cc File chrome/browser/chromeos/system/statistics_provider.cc ...
7 years, 11 months ago (2013-01-07 19:41:16 UTC) #6
hshi1
Did not get response from Daniel. Trying achuith@ and xiyuan@... PTAL, thanks!
7 years, 11 months ago (2013-01-07 20:38:49 UTC) #7
Daniel Erat
I was in an interview. Looking now...
7 years, 11 months ago (2013-01-07 20:56:19 UTC) #8
Daniel Erat
lgtm
7 years, 11 months ago (2013-01-07 20:58:35 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hshi@chromium.org/11778025/1006
7 years, 11 months ago (2013-01-07 21:35:01 UTC) #10
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 11 months ago (2013-01-07 22:31:43 UTC) #11
commit-bot: I haz the power
7 years, 11 months ago (2013-01-07 22:34:13 UTC) #12

Powered by Google App Engine
This is Rietveld 408576698