Chromium Code Reviews| Index: base/sys_info.h |
| diff --git a/base/sys_info.h b/base/sys_info.h |
| index b10747703d230fab880732bd23ba08e6661c61f8..58a188e0d7a71357810cfeef70ad67e8270cd552 100644 |
| --- a/base/sys_info.h |
| +++ b/base/sys_info.h |
| @@ -107,9 +107,19 @@ class BASE_EXPORT SysInfo { |
| static bool GetLsbReleaseValue(const std::string& key, std::string* value); |
| // Convenience function for GetLsbReleaseValue("CHROMEOS_RELEASE_BOARD",...). |
| - // Returns "unknown" if CHROMEOS_RELEASE_BOARD is not set. |
| + // Returns "unknown" if CHROMEOS_RELEASE_BOARD is not set. Otherwise returns |
| + // the full name of the board. WARNING: the returned value often differs in |
| + // developer built system compared to devices that use the official version. |
| + // E.g. for developer built version, the function could return 'glimmer' while |
| + // for officially used versions it would be like 'glimmer-signed-mp-v4keys'. |
| + // Use GetStrippedReleaseBoard() function if you need only the short name of |
| + // the board (would be 'glimmer' in the case described above). |
| static std::string GetLsbReleaseBoard(); |
| + // Convenience function for GetLsbReleaseBoard() removing trailing "-signed*" |
|
Thiemo Nagel
2016/11/25 15:16:12
-signed-*
Please be precise!
|
| + // if present. Returns "unknown" if CHROMEOS_RELEASE_BOARD is not set. |
| + static std::string GetStrippedReleaseBoard(); |
| + |
| // Returns the creation time of /etc/lsb-release. (Used to get the date and |
| // time of the Chrome OS build). |
| static Time GetLsbReleaseTime(); |