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

Unified Diff: base/sys_info_chromeos.cc

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
Index: base/sys_info_chromeos.cc
diff --git a/base/sys_info_chromeos.cc b/base/sys_info_chromeos.cc
index f84a2a5f81ba78469895b0275f1bd672f379466e..f0e510f1b7d7c39e627d33a6c6c1931220674cb9 100644
--- a/base/sys_info_chromeos.cc
+++ b/base/sys_info_chromeos.cc
@@ -113,4 +113,17 @@ void SysInfo::ParseLsbRelease(const std::string& lsb_release,
}
}
+//static
Evan Stade 2012/04/14 00:37:46 // static
Kyle Horimoto 2012/04/16 18:32:54 Done.
+bool SysInfo::GetTimeLastUpdated(base::Time* time) {
+ FilePath path(kLinuxStandardBaseReleaseFile);
+ base::PlatformFileInfo info;
+
+ if (file_util::GetFileInfo(path, &info)) {
+ *time = info.last_modified;
+ return true;
+ }
+
+ return false;
+}
+
} // namespace base

Powered by Google App Engine
This is Rietveld 408576698