Index: chrome/app/chrome_main.cc |
=================================================================== |
--- chrome/app/chrome_main.cc (revision 80148) |
+++ chrome/app/chrome_main.cc (working copy) |
@@ -72,6 +72,7 @@ |
#endif |
#if defined(OS_CHROMEOS) |
+#include "base/sys_info.h" |
#include "chrome/browser/chromeos/boot_times_loader.h" |
#endif |
@@ -739,6 +740,16 @@ |
if (!process_type.empty()) |
CommonSubprocessInit(process_type); |
+#if defined(OS_CHROMEOS) |
+ { |
+ // Read and cache ChromeOS version from file, |
+ // to be used from inside the sandbox. |
+ int32 major_version, minor_version, bugfix_version; |
+ base::SysInfo::OperatingSystemVersionNumbers( |
+ &major_version, &minor_version, &bugfix_version); |
+ } |
+#endif |
+ |
// Initialize the sandbox for this process. |
SandboxInitWrapper sandbox_wrapper; |
bool initialize_sandbox = true; |