summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorkhorimoto@chromium.org <khorimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-25 01:59:44 +0000
committerkhorimoto@chromium.org <khorimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-25 01:59:44 +0000
commitaf25b47a867fd9bd1ad019ac726686b745a43747 (patch)
tree515519f3a3c346878f7e2c74687b2d7e90547e4f /base
parent922828b3ae178dc7c7985b96f54a540f1f22cc9f (diff)
downloadchromium_src-af25b47a867fd9bd1ad019ac726686b745a43747.zip
chromium_src-af25b47a867fd9bd1ad019ac726686b745a43747.tar.gz
chromium_src-af25b47a867fd9bd1ad019ac726686b745a43747.tar.bz2
Implemented a "Last Updated" field for the about page of Chrome OS.
BUG=117517 TEST= Review URL: http://codereview.chromium.org/10038034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133840 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/sys_info.h11
-rw-r--r--base/sys_info_chromeos.cc7
2 files changed, 14 insertions, 4 deletions
diff --git a/base/sys_info.h b/base/sys_info.h
index f3677d6..edfa70f 100644
--- a/base/sys_info.h
+++ b/base/sys_info.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -8,6 +8,8 @@
#include "base/base_export.h"
#include "base/basictypes.h"
+#include "base/file_path.h"
+#include "base/time.h"
#include <string>
@@ -61,7 +63,7 @@ class BASE_EXPORT SysInfo {
#if defined(OS_POSIX) && !defined(OS_MACOSX)
// Returns the maximum SysV shared memory segment size.
static size_t MaxSharedMemorySize();
-#endif
+#endif // defined(OS_POSIX) && !defined(OS_MACOSX)
#if defined(OS_CHROMEOS)
// Returns the name of the version entry we wish to look up in the
@@ -74,7 +76,10 @@ class BASE_EXPORT SysInfo {
int32* major_version,
int32* minor_version,
int32* bugfix_version);
-#endif
+
+ // Returns the path to the lsb-release file.
+ static FilePath GetLsbReleaseFilePath();
+#endif // defined(OS_CHROMEOS)
};
} // namespace base
diff --git a/base/sys_info_chromeos.cc b/base/sys_info_chromeos.cc
index f84a2a5..92a3f0c 100644
--- a/base/sys_info_chromeos.cc
+++ b/base/sys_info_chromeos.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -113,4 +113,9 @@ void SysInfo::ParseLsbRelease(const std::string& lsb_release,
}
}
+// static
+FilePath SysInfo::GetLsbReleaseFilePath() {
+ return FilePath(kLinuxStandardBaseReleaseFile);
+}
+
} // namespace base