OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/chromeos/login/version_info_updater.h" | 5 #include "chrome/browser/chromeos/login/version_info_updater.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
149 } | 149 } |
150 | 150 |
151 void VersionInfoUpdater::OnVersion(const std::string& version) { | 151 void VersionInfoUpdater::OnVersion(const std::string& version) { |
152 version_text_ = version; | 152 version_text_ = version; |
153 UpdateVersionLabel(); | 153 UpdateVersionLabel(); |
154 } | 154 } |
155 | 155 |
156 void VersionInfoUpdater::OnBootTimesNoop( | 156 void VersionInfoUpdater::OnBootTimesNoop( |
157 const BootTimesLoader::BootTimes& boot_times) {} | 157 const BootTimesLoader::BootTimes& boot_times) {} |
158 | 158 |
159 // ASAN finds bug in the following function: crbug.com/170034. | |
Nikita (slow)
2013/01/15 14:02:50
Comment should be simplified:
// Mask it out for
| |
160 // Mask it out for ASAN before the bug is fixed. | |
161 #if defined(ADDRESS_SANITIZER) | |
162 __attribute__((no_address_safety_analysis)) | |
Nikita (slow)
2013/01/15 14:02:50
Could we use a similar mechanism that is used to s
| |
163 #endif // defined(ADDRESS_SANITIZER) | |
159 void VersionInfoUpdater::OnBootTimes( | 164 void VersionInfoUpdater::OnBootTimes( |
160 const BootTimesLoader::BootTimes& boot_times) { | 165 const BootTimesLoader::BootTimes& boot_times) { |
161 const char* kBootTimesNoChromeExec = | 166 const char* kBootTimesNoChromeExec = |
162 "Non-firmware boot took %.2f seconds (kernel %.2fs, system %.2fs)"; | 167 "Non-firmware boot took %.2f seconds (kernel %.2fs, system %.2fs)"; |
163 const char* kBootTimesChromeExec = | 168 const char* kBootTimesChromeExec = |
164 "Non-firmware boot took %.2f seconds " | 169 "Non-firmware boot took %.2f seconds " |
165 "(kernel %.2fs, system %.2fs, chrome %.2fs)"; | 170 "(kernel %.2fs, system %.2fs, chrome %.2fs)"; |
166 std::string boot_times_text; | 171 std::string boot_times_text; |
167 | 172 |
168 if (boot_times.chrome > 0) { | 173 if (boot_times.chrome > 0) { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
204 int type, | 209 int type, |
205 const content::NotificationSource& source, | 210 const content::NotificationSource& source, |
206 const content::NotificationDetails& details) { | 211 const content::NotificationDetails& details) { |
207 if (type == chrome::NOTIFICATION_SYSTEM_SETTING_CHANGED) | 212 if (type == chrome::NOTIFICATION_SYSTEM_SETTING_CHANGED) |
208 UpdateEnterpriseInfo(); | 213 UpdateEnterpriseInfo(); |
209 else | 214 else |
210 NOTREACHED(); | 215 NOTREACHED(); |
211 } | 216 } |
212 | 217 |
213 } // namespace chromeos | 218 } // namespace chromeos |
OLD | NEW |