| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |