OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/sys_info.h" | 5 #include "base/sys_info.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
11 #include "base/string_tokenizer.h" | 11 #include "base/string_tokenizer.h" |
12 #include "base/thread_restrictions.h" | 12 #include "base/threading/thread_restrictions.h" |
13 | 13 |
14 namespace base { | 14 namespace base { |
15 | 15 |
16 #if defined(GOOGLE_CHROME_BUILD) | 16 #if defined(GOOGLE_CHROME_BUILD) |
17 static const char kLinuxStandardBaseVersionKey[] = "GOOGLE_RELEASE"; | 17 static const char kLinuxStandardBaseVersionKey[] = "GOOGLE_RELEASE"; |
18 #else | 18 #else |
19 static const char kLinuxStandardBaseVersionKey[] = "DISTRIB_RELEASE"; | 19 static const char kLinuxStandardBaseVersionKey[] = "DISTRIB_RELEASE"; |
20 #endif | 20 #endif |
21 | 21 |
22 const char kLinuxStandardBaseReleaseFile[] = "/etc/lsb-release"; | 22 const char kLinuxStandardBaseReleaseFile[] = "/etc/lsb-release"; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 minor_version); | 71 minor_version); |
72 } else { // 2 == i | 72 } else { // 2 == i |
73 StringToInt(tokenizer.token_begin(), | 73 StringToInt(tokenizer.token_begin(), |
74 tokenizer.token_end(), | 74 tokenizer.token_end(), |
75 bugfix_version); | 75 bugfix_version); |
76 } | 76 } |
77 } | 77 } |
78 } | 78 } |
79 | 79 |
80 } // namespace base | 80 } // namespace base |
OLD | NEW |