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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/tab/TabWebContentsObserver.java

Issue 2960843003: Remove UMA.Debug.EnableCrashUpload.* UMA, (Closed)
Patch Set: Keep DeferredStartUpCompleteTime metrics Created 3 years, 6 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/android/java/src/org/chromium/chrome/browser/tab/TabWebContentsObserver.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/tab/TabWebContentsObserver.java b/chrome/android/java/src/org/chromium/chrome/browser/tab/TabWebContentsObserver.java
index efea41c3cb5074b1c206324391183cca08fba665..0573d850bc2f5308cfeed635e802170beb8be7c1 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/tab/TabWebContentsObserver.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/tab/TabWebContentsObserver.java
@@ -210,19 +210,19 @@ public class TabWebContentsObserver extends WebContentsObserver {
}
if (!hasCommitted) return;
- if (isInMainFrame && UmaUtils.isRunningApplicationStart()) {
+ if (isInMainFrame && UmaUtils.hasComeToForeground()) {
// Current median is 550ms, and long tail is very long. ZoomedIn gives good view of the
// median and ZoomedOut gives a good overview.
RecordHistogram.recordCustomTimesHistogram(
- "Startup.FirstCommitNavigationTime2.ZoomedIn",
- SystemClock.uptimeMillis() - UmaUtils.getForegroundStartTime(),
- 200, 1000, TimeUnit.MILLISECONDS, 100);
+ "Startup.FirstCommitNavigationTime3.ZoomedIn",
+ SystemClock.uptimeMillis() - UmaUtils.getForegroundStartTime(), 200, 1000,
+ TimeUnit.MILLISECONDS, 100);
// For ZoomedOut very rarely is it under 50ms and this range matches
// CustomTabs.IntentToFirstCommitNavigationTime2.ZoomedOut.
RecordHistogram.recordCustomTimesHistogram(
- "Startup.FirstCommitNavigationTime2.ZoomedOut",
- SystemClock.uptimeMillis() - UmaUtils.getForegroundStartTime(),
- 50, TimeUnit.MINUTES.toMillis(10), TimeUnit.MILLISECONDS, 50);
+ "Startup.FirstCommitNavigationTime3.ZoomedOut",
+ SystemClock.uptimeMillis() - UmaUtils.getForegroundStartTime(), 50,
+ TimeUnit.MINUTES.toMillis(10), TimeUnit.MILLISECONDS, 50);
UmaUtils.setRunningApplicationStart(false);
}
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/metrics/UmaUtils.java ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698