Chromium Code Reviews| Index: base/sys_info_chromeos.cc |
| diff --git a/base/sys_info_chromeos.cc b/base/sys_info_chromeos.cc |
| index e4d671f75d956eadcff5d8dd5adddbab4e5d33d5..2aff34afe40f1952c6d0aa04b93e493aa360fcdb 100644 |
| --- a/base/sys_info_chromeos.cc |
| +++ b/base/sys_info_chromeos.cc |
| @@ -200,6 +200,17 @@ std::string SysInfo::GetLsbReleaseBoard() { |
| } |
| // static |
| +std::string SysInfo::GetStrippedReleaseBoard() { |
| + std::string board = GetLsbReleaseBoard(); |
| + const size_t index = board.find("-signed-"); |
| + if (index != std::string::npos) { |
|
Alexei Svitkine (slow)
2016/11/28 16:03:28
Nit: No {}
igorcov
2016/11/28 16:37:08
Done.
|
| + board.resize(index); |
| + } |
| + |
| + return base::ToLowerASCII(board); |
| +} |
| + |
| +// static |
| Time SysInfo::GetLsbReleaseTime() { |
| return GetChromeOSVersionInfo().lsb_release_time(); |
| } |