| 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/android/tab_android.h" | 5 #include "chrome/browser/android/tab_android.h" |
| 6 | 6 |
| 7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
| 8 #include "base/android/jni_array.h" | 8 #include "base/android/jni_array.h" |
| 9 #include "base/android/jni_string.h" | 9 #include "base/android/jni_string.h" |
| 10 #include "base/debug/trace_event.h" | |
| 11 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
| 11 #include "base/trace_event/trace_event.h" |
| 12 #include "chrome/browser/android/chrome_web_contents_delegate_android.h" | 12 #include "chrome/browser/android/chrome_web_contents_delegate_android.h" |
| 13 #include "chrome/browser/android/uma_utils.h" | 13 #include "chrome/browser/android/uma_utils.h" |
| 14 #include "chrome/browser/browser_about_handler.h" | 14 #include "chrome/browser/browser_about_handler.h" |
| 15 #include "chrome/browser/chrome_notification_types.h" | 15 #include "chrome/browser/chrome_notification_types.h" |
| 16 #include "chrome/browser/content_settings/tab_specific_content_settings.h" | 16 #include "chrome/browser/content_settings/tab_specific_content_settings.h" |
| 17 #include "chrome/browser/favicon/favicon_tab_helper.h" | 17 #include "chrome/browser/favicon/favicon_tab_helper.h" |
| 18 #include "chrome/browser/infobars/infobar_service.h" | 18 #include "chrome/browser/infobars/infobar_service.h" |
| 19 #include "chrome/browser/prerender/prerender_contents.h" | 19 #include "chrome/browser/prerender/prerender_contents.h" |
| 20 #include "chrome/browser/prerender/prerender_manager.h" | 20 #include "chrome/browser/prerender/prerender_manager.h" |
| 21 #include "chrome/browser/prerender/prerender_manager_factory.h" | 21 #include "chrome/browser/prerender/prerender_manager_factory.h" |
| (...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 // s^{n+1} / s^{n} = 2100 / 2000 | 761 // s^{n+1} / s^{n} = 2100 / 2000 |
| 762 // s = 1.05 | 762 // s = 1.05 |
| 763 // s^b = 60000 | 763 // s^b = 60000 |
| 764 // b = ln(60000) / ln(1.05) ~= 225 | 764 // b = ln(60000) / ln(1.05) ~= 225 |
| 765 UMA_HISTOGRAM_CUSTOM_TIMES("Startup.FirstCommitNavigationTime", | 765 UMA_HISTOGRAM_CUSTOM_TIMES("Startup.FirstCommitNavigationTime", |
| 766 base::Time::Now() - chrome::android::GetMainEntryPointTime(), | 766 base::Time::Now() - chrome::android::GetMainEntryPointTime(), |
| 767 base::TimeDelta::FromMilliseconds(1), | 767 base::TimeDelta::FromMilliseconds(1), |
| 768 base::TimeDelta::FromMinutes(1), | 768 base::TimeDelta::FromMinutes(1), |
| 769 225); | 769 225); |
| 770 } | 770 } |
| OLD | NEW |