OLD | NEW |
---|---|
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 Loading... | |
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 |
OLD | NEW |