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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 2773973002: Add Startup.BrowserView.FirstPaint / .CompositingEnded histograms. (Closed)
Patch Set: Use more correct place to report timings in Cocoa, fix review remarks. Created 3 years, 8 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/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index df7b1cc1046295ee403ac8f528595ea702878327..132348b7d22b1895efbe951b3699281792325604 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -820,8 +820,8 @@ void ChromeBrowserMainParts::StartMetricsRecording() {
void ChromeBrowserMainParts::RecordBrowserStartupTime() {
// Don't record any metrics if UI was displayed before this point e.g.
- // warning dialogs.
- if (startup_metric_utils::WasNonBrowserUIDisplayed())
+ // warning dialogs or browser was started in background mode.
+ if (startup_metric_utils::WasMainWindowStartupInterrupted())
return;
bool is_first_run = false;

Powered by Google App Engine
This is Rietveld 408576698