| Index: chrome/browser/chromeos/boot_times_loader.h
|
| diff --git a/chrome/browser/chromeos/boot_times_loader.h b/chrome/browser/chromeos/boot_times_loader.h
|
| index 0cae34f1d35762f1ede1ebfdad8229e37f208493..2247a9b6c5fcbc5374f2adb97475c8b77436fb89 100644
|
| --- a/chrome/browser/chromeos/boot_times_loader.h
|
| +++ b/chrome/browser/chromeos/boot_times_loader.h
|
| @@ -140,6 +140,11 @@ class BootTimesLoader
|
| base::Time time() const { return time_; }
|
| bool send_to_uma() const { return send_to_uma_; }
|
|
|
| + // comparitor for sorting
|
| + bool operator<(const TimeMarker& other) const {
|
| + return time_ < other.time_;
|
| + }
|
| +
|
| private:
|
| friend class std::vector<TimeMarker>;
|
| std::string name_;
|
| @@ -159,7 +164,11 @@ class BootTimesLoader
|
| static void WriteTimes(const std::string base_name,
|
| const std::string uma_name,
|
| const std::string uma_prefix,
|
| - const std::vector<TimeMarker> login_times);
|
| + std::vector<TimeMarker> login_times);
|
| + static void AddMarker(
|
| + std::vector<TimeMarker>* vector, const TimeMarker& marker);
|
| + static void AddMarkerImpl(std::vector<TimeMarker>* vector, TimeMarker marker);
|
| +
|
| void LoginDone();
|
|
|
| // Used to hold the stats at main().
|
|
|