OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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/metrics/launch_metrics.h" | 5 #include "chrome/browser/android/metrics/launch_metrics.h" |
6 | 6 |
7 #include "base/android/jni_string.h" | 7 #include "base/android/jni_string.h" |
8 #include "base/metrics/histogram_macros.h" | 8 #include "base/metrics/histogram_macros.h" |
9 #include "base/metrics/user_metrics.h" | |
10 #include "base/time/time.h" | 9 #include "base/time/time.h" |
11 #include "chrome/browser/android/shortcut_info.h" | 10 #include "chrome/browser/android/shortcut_info.h" |
12 #include "chrome/browser/banners/app_banner_settings_helper.h" | 11 #include "chrome/browser/banners/app_banner_settings_helper.h" |
13 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
14 #include "chrome/browser/engagement/site_engagement_service.h" | 13 #include "chrome/browser/engagement/site_engagement_service.h" |
15 #include "chrome/browser/prefs/pref_metrics_service.h" | 14 #include "chrome/browser/prefs/pref_metrics_service.h" |
16 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
17 #include "components/rappor/public/rappor_utils.h" | 16 #include "components/rappor/public/rappor_utils.h" |
18 #include "components/rappor/rappor_service_impl.h" | 17 #include "components/rappor/rappor_service_impl.h" |
19 #include "content/public/browser/web_contents.h" | 18 #include "content/public/browser/web_contents.h" |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 jboolean homepage_is_ntp, | 124 jboolean homepage_is_ntp, |
126 const JavaParamRef<jstring>& jhomepage_url) { | 125 const JavaParamRef<jstring>& jhomepage_url) { |
127 GURL homepage_url(base::android::ConvertJavaStringToUTF8(env, jhomepage_url)); | 126 GURL homepage_url(base::android::ConvertJavaStringToUTF8(env, jhomepage_url)); |
128 PrefMetricsService::RecordHomePageLaunchMetrics( | 127 PrefMetricsService::RecordHomePageLaunchMetrics( |
129 show_home_button, | 128 show_home_button, |
130 homepage_is_ntp, | 129 homepage_is_ntp, |
131 homepage_url); | 130 homepage_url); |
132 } | 131 } |
133 | 132 |
134 }; // namespace metrics | 133 }; // namespace metrics |
OLD | NEW |