summaryrefslogtreecommitdiffstats
path: root/base/sys_info_chromeos.cc
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-09 17:24:38 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-09 17:24:38 +0000
commitfe68e73c53268cdc6eb0c65adea5dda75d9281ab (patch)
tree95da60b91748131807fce7df8b8ae147baca89fa /base/sys_info_chromeos.cc
parent23f785bb901f960bb8481ff93b3294e6700b827c (diff)
downloadchromium_src-fe68e73c53268cdc6eb0c65adea5dda75d9281ab.zip
chromium_src-fe68e73c53268cdc6eb0c65adea5dda75d9281ab.tar.gz
chromium_src-fe68e73c53268cdc6eb0c65adea5dda75d9281ab.tar.bz2
Revert 88470 (broke ServiceProcessStateTest.ForceShutdown on CrOS) - Fix for system version unit tests in cros.
BUG=chromium-os:15789 TEST=Ran try servers to make sure the unit test is not failing anymore, plus viewed all the screens and took screenshots. Screen shots of all effected screens are attached to the cros bug TBR=rkc@chromium.org TBR=rkc@chromium.org Review URL: http://codereview.chromium.org/7044086 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88545 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/sys_info_chromeos.cc')
-rw-r--r--base/sys_info_chromeos.cc11
1 files changed, 4 insertions, 7 deletions
diff --git a/base/sys_info_chromeos.cc b/base/sys_info_chromeos.cc
index f724f99..cd17c18 100644
--- a/base/sys_info_chromeos.cc
+++ b/base/sys_info_chromeos.cc
@@ -94,20 +94,17 @@ void SysInfo::ParseLsbRelease(const std::string& lsb_release,
size_t length = lsb_release.find_first_of('\n', start_index) - start_index;
std::string version = lsb_release.substr(start_index, length);
StringTokenizer tokenizer(version, ".");
- // TODO(rkc): Ignore the 0. here; fix this once we move Chrome OS version
- // numbers from the 0.xx.yyy.zz format to the xx.yyy.zz format.
- // Refer to http://code.google.com/p/chromium-os/issues/detail?id=15789
- for (int i = 0; i < 4 && tokenizer.GetNext(); i++) {
- if (1 == i) {
+ for (int i = 0; i < 3 && tokenizer.GetNext(); i++) {
+ if (0 == i) {
StringToInt(tokenizer.token_begin(),
tokenizer.token_end(),
major_version);
*minor_version = *bugfix_version = 0;
- } else if (2 == i) {
+ } else if (1 == i) {
StringToInt(tokenizer.token_begin(),
tokenizer.token_end(),
minor_version);
- } else { // 3 == i
+ } else { // 2 == i
StringToInt(tokenizer.token_begin(),
tokenizer.token_end(),
bugfix_version);