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

Unified Diff: chrome/app/chrome_main.cc

Issue 6771012: Read ChromeOS version numbers from file before sandboxing and cache them. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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
« no previous file with comments | « base/sys_info_chromeos.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « base/sys_info_chromeos.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698