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

Side by Side Diff: chrome/browser/android/tab_android.cc

Issue 933663003: Enable PredictorTabHelper on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/ui/tab_helpers.cc » ('j') | chrome/browser/ui/tab_helpers.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
11 #include "base/trace_event/trace_event.h" 11 #include "base/trace_event/trace_event.h"
12 #include "cc/layers/layer.h" 12 #include "cc/layers/layer.h"
13 #include "chrome/browser/android/chrome_web_contents_delegate_android.h" 13 #include "chrome/browser/android/chrome_web_contents_delegate_android.h"
14 #include "chrome/browser/android/compositor/tab_content_manager.h" 14 #include "chrome/browser/android/compositor/tab_content_manager.h"
15 #include "chrome/browser/android/uma_utils.h" 15 #include "chrome/browser/android/uma_utils.h"
16 #include "chrome/browser/browser_about_handler.h" 16 #include "chrome/browser/browser_about_handler.h"
17 #include "chrome/browser/chrome_notification_types.h" 17 #include "chrome/browser/chrome_notification_types.h"
18 #include "chrome/browser/content_settings/tab_specific_content_settings.h" 18 #include "chrome/browser/content_settings/tab_specific_content_settings.h"
19 #include "chrome/browser/favicon/favicon_tab_helper.h" 19 #include "chrome/browser/favicon/favicon_tab_helper.h"
20 #include "chrome/browser/infobars/infobar_service.h" 20 #include "chrome/browser/infobars/infobar_service.h"
21 #include "chrome/browser/net/predictor.h"
cbentzel 2015/02/17 13:44:03 Why is this needed?
Benoit L 2015/02/17 14:57:47 Sorry, a leftover from previous experiments. Done.
21 #include "chrome/browser/prerender/prerender_contents.h" 22 #include "chrome/browser/prerender/prerender_contents.h"
22 #include "chrome/browser/prerender/prerender_manager.h" 23 #include "chrome/browser/prerender/prerender_manager.h"
23 #include "chrome/browser/prerender/prerender_manager_factory.h" 24 #include "chrome/browser/prerender/prerender_manager_factory.h"
24 #include "chrome/browser/printing/print_view_manager_basic.h" 25 #include "chrome/browser/printing/print_view_manager_basic.h"
25 #include "chrome/browser/profiles/profile.h" 26 #include "chrome/browser/profiles/profile.h"
26 #include "chrome/browser/profiles/profile_android.h" 27 #include "chrome/browser/profiles/profile_android.h"
27 #include "chrome/browser/search/instant_service.h" 28 #include "chrome/browser/search/instant_service.h"
28 #include "chrome/browser/search/instant_service_factory.h" 29 #include "chrome/browser/search/instant_service_factory.h"
29 #include "chrome/browser/search/search.h" 30 #include "chrome/browser/search/search.h"
30 #include "chrome/browser/sessions/session_tab_helper.h" 31 #include "chrome/browser/sessions/session_tab_helper.h"
(...skipping 784 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 // s^{n+1} / s^{n} = 2100 / 2000 816 // s^{n+1} / s^{n} = 2100 / 2000
816 // s = 1.05 817 // s = 1.05
817 // s^b = 60000 818 // s^b = 60000
818 // b = ln(60000) / ln(1.05) ~= 225 819 // b = ln(60000) / ln(1.05) ~= 225
819 UMA_HISTOGRAM_CUSTOM_TIMES("Startup.FirstCommitNavigationTime", 820 UMA_HISTOGRAM_CUSTOM_TIMES("Startup.FirstCommitNavigationTime",
820 base::Time::Now() - chrome::android::GetMainEntryPointTime(), 821 base::Time::Now() - chrome::android::GetMainEntryPointTime(),
821 base::TimeDelta::FromMilliseconds(1), 822 base::TimeDelta::FromMilliseconds(1),
822 base::TimeDelta::FromMinutes(1), 823 base::TimeDelta::FromMinutes(1),
823 225); 824 225);
824 } 825 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/tab_helpers.cc » ('j') | chrome/browser/ui/tab_helpers.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698