diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-22 00:35:18 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-22 00:35:18 +0000 |
commit | 61b8ad79a502d0b3666305307e3cba9208a6c2e9 (patch) | |
tree | 8a0653f9909ee9b54d7f2982d75f10ae7aec4bd1 /base/sys_info.h | |
parent | 87fc168b364ef36033f72e545a4894bd7ce9354f (diff) | |
download | chromium_src-61b8ad79a502d0b3666305307e3cba9208a6c2e9.zip chromium_src-61b8ad79a502d0b3666305307e3cba9208a6c2e9.tar.gz chromium_src-61b8ad79a502d0b3666305307e3cba9208a6c2e9.tar.bz2 |
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 <cmasone@google.com>.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21247 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/sys_info.h')
-rw-r--r-- | base/sys_info.h | 13 |
1 files changed, 13 insertions, 0 deletions
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 |