| Index: components/metrics/drive_metrics_provider_linux.cc
|
| diff --git a/components/metrics/drive_metrics_provider_linux.cc b/components/metrics/drive_metrics_provider_linux.cc
|
| index 35c505a3492b945e814f7f4861f61478bf7c43a3..8f42bdf001bf3665c3b01a3364431e444d669ef9 100644
|
| --- a/components/metrics/drive_metrics_provider_linux.cc
|
| +++ b/components/metrics/drive_metrics_provider_linux.cc
|
| @@ -11,6 +11,7 @@
|
| #include "base/files/file.h"
|
| #include "base/files/file_path.h"
|
| #include "base/files/file_util.h"
|
| +#include "base/strings/string_util.h"
|
| #include "base/strings/stringprintf.h"
|
| #include "build/build_config.h"
|
|
|
| @@ -33,8 +34,9 @@ const char kRotationalFormat[] = "/sys/block/sd%c/queue/rotational";
|
| bool DriveMetricsProvider::HasSeekPenalty(const base::FilePath& path,
|
| bool* has_seek_penalty) {
|
| #if defined(OS_CHROMEOS)
|
| - std::string board = base::SysInfo::GetLsbReleaseBoard();
|
| - if (board != "unknown" && board != "parrot") {
|
| + std::string board = base::SysInfo::GetStrippedReleaseBoard();
|
| + if (board != "unknown" &&
|
| + !base::StartsWith(board, "parrot", base::CompareCase::SENSITIVE)) {
|
| // All ChromeOS devices have SSDs. Except some parrots.
|
| *has_seek_penalty = false;
|
| return true;
|
|
|