Index: base/sys_info_linux.cc |
diff --git a/base/sys_info_linux.cc b/base/sys_info_linux.cc |
index 7e623395571431e5029af8b17181c8774c1bcbc4..58a0aefee6212e0647476370f10e5fd0d04d30af 100644 |
--- a/base/sys_info_linux.cc |
+++ b/base/sys_info_linux.cc |
@@ -61,15 +61,19 @@ size_t SysInfo::MaxSharedMemorySize() { |
// static |
std::string SysInfo::CPUModelName() { |
- const char kModelNamePrefix[] = "model name"; |
+#if defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL) |
+ const char kCpuModelPrefix[] = "Hardware"; |
+#else |
+ const char kCpuModelPrefix[] = "model name"; |
+#endif |
std::string contents; |
file_util::ReadFileToString(FilePath("/proc/cpuinfo"), &contents); |
DCHECK(!contents.empty()); |
if (!contents.empty()) { |
std::istringstream iss(contents); |
std::string line; |
- while (std::getline(iss, line)){ |
- if (line.compare(0, strlen(kModelNamePrefix), kModelNamePrefix) == 0) { |
+ while (std::getline(iss, line)) { |
+ if (line.compare(0, strlen(kCpuModelPrefix), kCpuModelPrefix) == 0) { |
size_t pos = line.find(": "); |
return line.substr(pos + 2); |
} |