From 61b8ad79a502d0b3666305307e3cba9208a6c2e9 Mon Sep 17 00:00:00 2001 From: "evan@chromium.org" Date: Wed, 22 Jul 2009 00:35:18 +0000 Subject: Creating a unique user-agent string for ChromeOS builds, so that metrics can be aggregated separately from standard Chrome on Linux Review URL: http://codereview.chromium.org/155101 Patch from Chris Masone . git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21247 0039d316-1c4b-4281-b951-d872f2087c98 --- base/sys_info.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'base/sys_info.h') diff --git a/base/sys_info.h b/base/sys_info.h index d083377..581720d 100644 --- a/base/sys_info.h +++ b/base/sys_info.h @@ -64,6 +64,19 @@ class SysInfo { // Return the smallest amount of memory (in bytes) which the VM system will // allocate. static size_t VMAllocationGranularity(); + +#if defined(OS_CHROMEOS) + // Returns the name of the version entry we wish to look up in the + // Linux Standard Base release information file. + static std::string GetLinuxStandardBaseVersionKey(); + + // Parses /etc/lsb-release to get version information for Google Chrome OS. + // Declared here so it can be exposed for unit testing. + static void ParseLsbRelease(const std::string& lsb_release, + int32 *major_version, + int32 *minor_version, + int32 *bugfix_version); +#endif }; } // namespace base -- cgit v1.1