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

Unified Diff: chrome/browser/metrics/metrics_service.cc

Issue 26373009: ash:Shelf - Added UMA stats for ShelfAlignment (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ws Created 7 years, 2 months 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
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();
}

Powered by Google App Engine
This is Rietveld 408576698