Chromium Code Reviews| Index: chrome/browser/metrics/metrics_service.cc |
| diff --git a/chrome/browser/metrics/metrics_service.cc b/chrome/browser/metrics/metrics_service.cc |
| index d17779b4f2247803aca4d61e06935cb1d4b5ca1a..43bcea1971202534eb3fc2dfbbe2385cd32e02b1 100644 |
| --- a/chrome/browser/metrics/metrics_service.cc |
| +++ b/chrome/browser/metrics/metrics_service.cc |
| @@ -152,6 +152,7 @@ |
| #include <algorithm> |
| +#include "ash/launcher/launcher.h" |
| #include "base/bind.h" |
| #include "base/callback.h" |
| #include "base/command_line.h" |
| @@ -1153,6 +1154,13 @@ void MetricsService::SaveLocalState() { |
| RecordCurrentState(pref); |
| +#if defined(OS_CHROMEOS) |
| + // Query the current state of the shelf alignment to gather an impression of |
| + // how much user time is being spent in each alignment. |
| + ash::Launcher::ForPrimaryDisplay()->RecordCurrentAlignmentForUMAHistogram( |
|
James Cook
2013/10/30 16:49:12
Now that I think about it more, this really needs
|
| + "Ash.ShelfAlignmentOverTime"); |
| +#endif |
| + |
| // TODO(jar):110021 Does this run down the batteries???? |
| ScheduleNextStateSave(); |
| } |