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

Unified Diff: chrome/browser/chromeos/login/version_info_updater.cc

Issue 8508028: Ensure that GetBootTimes is always called, since it updates histograms (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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 | « chrome/browser/chromeos/login/version_info_updater.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/version_info_updater.cc
===================================================================
--- chrome/browser/chromeos/login/version_info_updater.cc (revision 108130)
+++ chrome/browser/chromeos/login/version_info_updater.cc (working copy)
@@ -50,11 +50,11 @@
is_official_build ?
VersionLoader::VERSION_SHORT_WITH_DATE :
VersionLoader::VERSION_FULL);
- if (!is_official_build) {
- boot_times_loader_.GetBootTimes(
- &boot_times_consumer_,
- NewCallback(this, &VersionInfoUpdater::OnBootTimes));
- }
+ boot_times_loader_.GetBootTimes(
+ &boot_times_consumer_,
+ NewCallback(this, is_official_build ?
+ &VersionInfoUpdater::OnBootTimesNoop :
+ &VersionInfoUpdater::OnBootTimes));
jrbarnette 2011/11/09 23:54:03 It would help to have a comment here mentioning th
} else {
UpdateVersionLabel();
}
@@ -166,6 +166,10 @@
UpdateVersionLabel();
}
+void VersionInfoUpdater::OnBootTimesNoop(
+ BootTimesLoader::Handle handle, BootTimesLoader::BootTimes boot_times) {
+}
+
void VersionInfoUpdater::OnBootTimes(
BootTimesLoader::Handle handle, BootTimesLoader::BootTimes boot_times) {
const char* kBootTimesNoChromeExec =
« no previous file with comments | « chrome/browser/chromeos/login/version_info_updater.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698