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

Unified Diff: chrome/browser/win/jumplist.cc

Issue 2966123002: Log the time interval between adjacent JumpList update notifications (Closed)
Patch Set: Created 3 years, 5 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
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/win/jumplist.cc
diff --git a/chrome/browser/win/jumplist.cc b/chrome/browser/win/jumplist.cc
index 7ebb5eab0553e7be09175a4f82c941bac03e2de6..0a222449bb01c586e8031dc37adb119e6426047b 100644
--- a/chrome/browser/win/jumplist.cc
+++ b/chrome/browser/win/jumplist.cc
@@ -309,6 +309,10 @@ void JumpList::InitializeTimerForUpdate() {
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
if (timer_.IsRunning()) {
+ // TODO(chengx): Remove the UMA histogram below after fixing crbug/733034.
+ UMA_HISTOGRAM_COUNTS_10000(
+ "WinJumplist.NotificationTimeInterval",
+ (timer_.desired_run_time() - base::TimeTicks::Now()).InMilliseconds());
timer_.Reset();
} else {
// base::Unretained is safe since |this| is guaranteed to outlive timer_.
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698