Index: android_webview/lib/main/aw_main_delegate.cc |
diff --git a/android_webview/lib/main/aw_main_delegate.cc b/android_webview/lib/main/aw_main_delegate.cc |
index a9f6bf6aee0c0f7fecff85f615c488660dbcef2c..b509bae6588bdb0f4e1902db22b3c5f128224116 100644 |
--- a/android_webview/lib/main/aw_main_delegate.cc |
+++ b/android_webview/lib/main/aw_main_delegate.cc |
@@ -16,6 +16,7 @@ |
#include "android_webview/native/external_video_surface_container_impl.h" |
#include "android_webview/renderer/aw_content_renderer_client.h" |
#include "base/command_line.h" |
+#include "base/cpu.h" |
#include "base/lazy_instance.h" |
#include "base/logging.h" |
#include "base/memory/scoped_ptr.h" |
@@ -83,6 +84,11 @@ bool AwMainDelegate::BasicStartupComplete(int* exit_code) { |
void AwMainDelegate::PreSandboxStartup() { |
// TODO(torne): When we have a separate renderer process, we need to handle |
// being passed open FDs for the resource paks here. |
+#if defined(ARCH_CPU_ARM_FAMILY) && (defined(OS_ANDROID) || defined(OS_LINUX)) |
Torne
2014/04/28 11:09:29
There's no need to test OS_ANDROID or OS_LINUX her
rptr
2014/04/28 11:28:03
Done.
|
+ // Create an instance of the CPU class to parse /proc/cpuinfo and cache |
+ // cpu_brand info. |
+ base::CPU cpu_info; |
+#endif |
} |
void AwMainDelegate::SandboxInitialized(const std::string& process_type) { |