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

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

Issue 11414041: Add function to CancelableTaskTracker and convert BootTimeLoader (take 2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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/boot_times_loader.cc ('k') | chrome/browser/chromeos/login/version_info_updater.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/version_info_updater.h
diff --git a/chrome/browser/chromeos/login/version_info_updater.h b/chrome/browser/chromeos/login/version_info_updater.h
index c02ff71ef311b467550d21cf6d97f9298bd56582..fc9868d522792cf7b548cb80be144f8e60bd9f46 100644
--- a/chrome/browser/chromeos/login/version_info_updater.h
+++ b/chrome/browser/chromeos/login/version_info_updater.h
@@ -75,21 +75,19 @@ class VersionInfoUpdater : public policy::CloudPolicySubsystem::Observer,
// Callback from chromeos::VersionLoader giving the version.
void OnVersion(const std::string& version);
// Callback from chromeos::InfoLoader giving the boot times.
- void OnBootTimes(
- BootTimesLoader::Handle handle, BootTimesLoader::BootTimes boot_times);
+ void OnBootTimes(const BootTimesLoader::BootTimes& boot_times);
// Null callback from chromeos::InfoLoader.
- void OnBootTimesNoop(
- BootTimesLoader::Handle handle, BootTimesLoader::BootTimes boot_times);
+ void OnBootTimesNoop(const BootTimesLoader::BootTimes& boot_times);
// Handles asynchronously loading the version.
VersionLoader version_loader_;
// Used to request the version.
- CancelableTaskTracker tracker_;
+ CancelableRequestConsumer version_consumer_;
// Handles asynchronously loading the boot times.
BootTimesLoader boot_times_loader_;
- // Used to request the boot times.
- CancelableRequestConsumer boot_times_consumer_;
+ // Used to request boot times.
+ CancelableTaskTracker tracker_;
// Information pieces for version label.
std::string version_text_;
« no previous file with comments | « chrome/browser/chromeos/boot_times_loader.cc ('k') | chrome/browser/chromeos/login/version_info_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698