Index: base/sys_info_posix.cc |
=================================================================== |
--- base/sys_info_posix.cc (revision 156435) |
+++ base/sys_info_posix.cc (working copy) |
@@ -79,7 +79,13 @@ |
NOTREACHED(); |
return ""; |
} |
- return std::string(info.machine); |
+ std::string arch(info.machine); |
+ if (arch == "i386" || arch == "i486" || arch == "i586" || arch == "i686") { |
+ arch = "x86"; |
+ } else if (arch == "amd64") { |
+ arch = "x86_64"; |
Mark Mentovai
2012/09/13 12:40:19
For Mac and Linux x86_*, this returns the kernel’s
Lei Zhang
2012/09/21 21:10:21
Right, I think CPUArchitecture() should be renamed
|
+ } |
+ return arch; |
} |
// static |