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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/sys_info.h" 5 #include "base/sys_info.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 tokenizer.token_end()), 106 tokenizer.token_end()),
107 minor_version); 107 minor_version);
108 } else { // 2 == i 108 } else { // 2 == i
109 StringToInt(StringPiece(tokenizer.token_begin(), 109 StringToInt(StringPiece(tokenizer.token_begin(),
110 tokenizer.token_end()), 110 tokenizer.token_end()),
111 bugfix_version); 111 bugfix_version);
112 } 112 }
113 } 113 }
114 } 114 }
115 115
116 //static
Evan Stade 2012/04/14 00:37:46 // static
Kyle Horimoto 2012/04/16 18:32:54 Done.
117 bool SysInfo::GetTimeLastUpdated(base::Time* time) {
118 FilePath path(kLinuxStandardBaseReleaseFile);
119 base::PlatformFileInfo info;
120
121 if (file_util::GetFileInfo(path, &info)) {
122 *time = info.last_modified;
123 return true;
124 }
125
126 return false;
127 }
128
116 } // namespace base 129 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698