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

Side by Side Diff: chrome/browser/chrome_browser_main.cc

Issue 2773973002: Add Startup.BrowserView.FirstPaint / .CompositingEnded histograms. (Closed)
Patch Set: Rebase on recent Chromium, address sky's 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chrome_browser_main.h" 5 #include "chrome/browser/chrome_browser_main.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 &group_name)) { 813 &group_name)) {
814 ChromeMetricsServiceAccessor::RegisterSyntheticFieldTrial(trial_name, 814 ChromeMetricsServiceAccessor::RegisterSyntheticFieldTrial(trial_name,
815 group_name); 815 group_name);
816 } 816 }
817 817
818 g_browser_process->GetMetricsServicesManager()->UpdateUploadPermissions(true); 818 g_browser_process->GetMetricsServicesManager()->UpdateUploadPermissions(true);
819 } 819 }
820 820
821 void ChromeBrowserMainParts::RecordBrowserStartupTime() { 821 void ChromeBrowserMainParts::RecordBrowserStartupTime() {
822 // Don't record any metrics if UI was displayed before this point e.g. 822 // Don't record any metrics if UI was displayed before this point e.g.
823 // warning dialogs. 823 // warning dialogs or browser was started in background mode.
824 if (startup_metric_utils::WasNonBrowserUIDisplayed()) 824 if (startup_metric_utils::WasMainWindowStartupInterrupted())
825 return; 825 return;
826 826
827 bool is_first_run = false; 827 bool is_first_run = false;
828 #if !defined(OS_ANDROID) 828 #if !defined(OS_ANDROID)
829 // On Android, first run is handled in Java code, and the C++ side of Chrome 829 // On Android, first run is handled in Java code, and the C++ side of Chrome
830 // doesn't know if this is the first run. This will cause some inaccuracy in 830 // doesn't know if this is the first run. This will cause some inaccuracy in
831 // the UMA statistics, but this should be minor (first runs are rare). 831 // the UMA statistics, but this should be minor (first runs are rare).
832 is_first_run = first_run::IsChromeFirstRun(); 832 is_first_run = first_run::IsChromeFirstRun();
833 #endif // defined(OS_ANDROID) 833 #endif // defined(OS_ANDROID)
834 834
(...skipping 1239 matching lines...) Expand 10 before | Expand all | Expand 10 after
2074 chromeos::CrosSettings::Shutdown(); 2074 chromeos::CrosSettings::Shutdown();
2075 #endif // defined(OS_CHROMEOS) 2075 #endif // defined(OS_CHROMEOS)
2076 #endif // defined(OS_ANDROID) 2076 #endif // defined(OS_ANDROID)
2077 } 2077 }
2078 2078
2079 // Public members: 2079 // Public members:
2080 2080
2081 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) { 2081 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) {
2082 chrome_extra_parts_.push_back(parts); 2082 chrome_extra_parts_.push_back(parts);
2083 } 2083 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698