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

Issue 11549025: Read the ChromeOS channel info earlier during startup. (Closed)

Created:
8 years ago by Alexei Svitkine (slow)
Modified:
8 years ago
Reviewers:
Nikita (slow), kochi
CC:
chromium-reviews, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org, sky
Visibility:
Public.

Description

Read the ChromeOS channel info earlier during startup. This makes the channel available much earlier, which allows users of that info, such as the VariationsService to work correctly. This CL also refactors StatisticsProvider initialization to be started explicitly, instead of as a result of the first call to GetInstance(). Previously, the initialization ended up happening as a result of BrowserPolicyConnector::CompleteInitialization() which was triggered by BrowserPolicyConnector::Init() when the local state was being initialized. BUG=107333 TEST=Manual, by instrumenting code and once this lands, checking that channel-targeted Finch studies get applied on ChromeOS. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=173507

Patch Set 1 #

Total comments: 9

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -34 lines) Patch
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 2 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/system/mock_statistics_provider.h View 1 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 5 chunks +41 lines, -28 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Alexei Svitkine (slow)
8 years ago (2012-12-12 21:26:40 UTC) #1
kochi
On 2012/12/12 21:26:40, Alexei Svitkine wrote: I'll take a look today and review, but a ...
8 years ago (2012-12-13 02:17:36 UTC) #2
kochi
https://chromiumcodereview.appspot.com/11549025/diff/1/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://chromiumcodereview.appspot.com/11549025/diff/1/chrome/browser/chrome_browser_main.cc#newcode730 chrome/browser/chrome_browser_main.cc:730: chromeos::system::StatisticsProvider::GetInstance()->Init(); Could you add a comment why the initialization ...
8 years ago (2012-12-13 14:17:29 UTC) #3
Alexei Svitkine (slow)
https://codereview.chromium.org/11549025/diff/1/chrome/browser/chromeos/system/statistics_provider.cc File chrome/browser/chromeos/system/statistics_provider.cc (right): https://codereview.chromium.org/11549025/diff/1/chrome/browser/chromeos/system/statistics_provider.cc#newcode84 chrome/browser/chromeos/system/statistics_provider.cc:84: // Loads the machine info file, which is necessary ...
8 years ago (2012-12-13 15:16:02 UTC) #4
Alexei Svitkine (slow)
https://codereview.chromium.org/11549025/diff/1/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/11549025/diff/1/chrome/browser/chrome_browser_main.cc#newcode730 chrome/browser/chrome_browser_main.cc:730: chromeos::system::StatisticsProvider::GetInstance()->Init(); On 2012/12/13 14:17:30, Takayoshi Kochi wrote: > Could ...
8 years ago (2012-12-13 15:45:49 UTC) #5
kochi
LGTM https://codereview.chromium.org/11549025/diff/1/chrome/browser/chromeos/system/statistics_provider.cc File chrome/browser/chromeos/system/statistics_provider.cc (right): https://codereview.chromium.org/11549025/diff/1/chrome/browser/chromeos/system/statistics_provider.cc#newcode145 chrome/browser/chromeos/system/statistics_provider.cc:145: } Looks good, thanks for explanation! On 2012/12/13 ...
8 years ago (2012-12-14 02:22:52 UTC) #6
Alexei Svitkine (slow)
+sky for chrome/ OWNERS
8 years ago (2012-12-14 15:04:57 UTC) #7
sky
Is it possible to move this to chrome_browser_main_chromeos?
8 years ago (2012-12-14 17:44:39 UTC) #8
Alexei Svitkine (slow)
On 2012/12/14 17:44:39, sky wrote: > Is it possible to move this to chrome_browser_main_chromeos? Done. ...
8 years ago (2012-12-14 18:08:21 UTC) #9
Alexei Svitkine (slow)
s/sky/nkostylev for a more appropriate chromeos owner
8 years ago (2012-12-14 20:21:36 UTC) #10
Alexei Svitkine (slow)
Nikita: ping for ChromeOS owners approval
8 years ago (2012-12-17 16:29:26 UTC) #11
Nikita (slow)
lgtm
8 years ago (2012-12-17 17:14:47 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/11549025/16013
8 years ago (2012-12-17 17:30:31 UTC) #13
commit-bot: I haz the power
8 years ago (2012-12-17 19:18:24 UTC) #14
Message was sent while issue was closed.
Change committed as 173507

Powered by Google App Engine
This is Rietveld 408576698