Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Unified Diff: content/zygote/zygote_main_linux.cc

Issue 188443003: Parsing /proc/cpuinfo for model on Android and Aura (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing review comments. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/zygote/zygote_main_linux.cc
diff --git a/content/zygote/zygote_main_linux.cc b/content/zygote/zygote_main_linux.cc
index 6c35502c111b693b54289e3d2eaebda151bfb60c..1b6ce431fc07d264d2a53f9f210a13fedaef1cca 100644
--- a/content/zygote/zygote_main_linux.cc
+++ b/content/zygote/zygote_main_linux.cc
@@ -20,6 +20,7 @@
#include "base/callback.h"
#include "base/command_line.h"
#include "base/compiler_specific.h"
+#include "base/cpu.h"
#include "base/linux_util.h"
#include "base/native_library.h"
#include "base/pickle.h"
@@ -298,6 +299,11 @@ static void ZygotePreSandboxInit() {
base::SysInfo::AmountOfPhysicalMemory();
base::SysInfo::MaxSharedMemorySize();
base::SysInfo::NumberOfProcessors();
+#if defined(ARCH_CPU_ARM_FAMILY) && defined(USE_AURA)
Mark Mentovai 2014/03/11 16:17:48 Probably just ARCH_CPU_ARM_FAMILY.
rptr 2014/03/12 15:26:25 Done.
+ // Create an instance of CPU class to parse /proc/cpuinfo and cache cpu_brand
Mark Mentovai 2014/03/11 16:17:48 As before.
rptr 2014/03/12 15:26:25 Done.
+ // info.
+ base::CPU cpu_info;
+#endif
// ICU DateFormat class (used in base/time_format.cc) needs to get the
// Olson timezone ID by accessing the zoneinfo files on disk. After
« content/shell/app/shell_main_delegate.cc ('K') | « content/shell/app/shell_main_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698