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

Unified Diff: base/sys_info.h

Issue 10038034: Implemented a "Last Updated" field for the about page of Chrome OS. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Updated comments, code style, etc. Created 8 years, 8 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 | « no previous file | base/sys_info_chromeos.cc » ('j') | base/sys_info_chromeos.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/sys_info.h
diff --git a/base/sys_info.h b/base/sys_info.h
index f3677d6009f0e67147642c54a470fb3c97a3bde2..5230aef1147ce5a4f439c3545d8ff2df3cb788f8 100644
--- a/base/sys_info.h
+++ b/base/sys_info.h
@@ -8,6 +8,7 @@
#include "base/base_export.h"
#include "base/basictypes.h"
+#include "base/time.h"
#include <string>
@@ -61,7 +62,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 +75,16 @@ class BASE_EXPORT SysInfo {
int32* major_version,
int32* minor_version,
int32* bugfix_version);
-#endif
+
+ // Retrieves the approximate time at which Chrome OS was last updated. Each
+ // time a new build is created, /etc/lsb-release is modified with the new
+ // version numbers of the release. This function reads that file's metadata
+ // and sets |time| equal to the time at which it was last modified, a close
+ // approximation to the time the last Chrome OS update occurred. On success,
+ // this function returns |true|, and if a problem is encountered, it returns
+ // |false|.
+ static bool GetTimeLastUpdated(base::Time* time);
+#endif // defined(OS_CHROMEOS)
};
} // namespace base
« no previous file with comments | « no previous file | base/sys_info_chromeos.cc » ('j') | base/sys_info_chromeos.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698