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_content_browser_client.h" | 5 #include "chrome/browser/chrome_content_browser_client.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <set> | 8 #include <set> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 #include "components/safe_browsing/common/safe_browsing_prefs.h" | 146 #include "components/safe_browsing/common/safe_browsing_prefs.h" |
147 #include "components/security_interstitials/core/ssl_error_ui.h" | 147 #include "components/security_interstitials/core/ssl_error_ui.h" |
148 #include "components/signin/core/common/profile_management_switches.h" | 148 #include "components/signin/core/common/profile_management_switches.h" |
149 #include "components/spellcheck/spellcheck_build_features.h" | 149 #include "components/spellcheck/spellcheck_build_features.h" |
150 #include "components/startup_metric_utils/browser/startup_metric_host_impl.h" | 150 #include "components/startup_metric_utils/browser/startup_metric_host_impl.h" |
151 #include "components/subresource_filter/content/browser/content_subresource_filt
er_driver_factory.h" | 151 #include "components/subresource_filter/content/browser/content_subresource_filt
er_driver_factory.h" |
152 #include "components/subresource_filter/content/browser/content_subresource_filt
er_throttle_manager.h" | 152 #include "components/subresource_filter/content/browser/content_subresource_filt
er_throttle_manager.h" |
153 #include "components/task_scheduler_util/browser/initialization.h" | 153 #include "components/task_scheduler_util/browser/initialization.h" |
154 #include "components/task_scheduler_util/common/variations_util.h" | 154 #include "components/task_scheduler_util/common/variations_util.h" |
155 #include "components/translate/core/common/translate_switches.h" | 155 #include "components/translate/core/common/translate_switches.h" |
| 156 #include "components/ukm/ukm_interface.h" |
156 #include "components/url_formatter/url_fixer.h" | 157 #include "components/url_formatter/url_fixer.h" |
157 #include "components/variations/variations_associated_data.h" | 158 #include "components/variations/variations_associated_data.h" |
158 #include "components/version_info/version_info.h" | 159 #include "components/version_info/version_info.h" |
159 #include "content/public/browser/browser_child_process_host.h" | 160 #include "content/public/browser/browser_child_process_host.h" |
160 #include "content/public/browser/browser_main_parts.h" | 161 #include "content/public/browser/browser_main_parts.h" |
161 #include "content/public/browser/browser_ppapi_host.h" | 162 #include "content/public/browser/browser_ppapi_host.h" |
162 #include "content/public/browser/browser_thread.h" | 163 #include "content/public/browser/browser_thread.h" |
163 #include "content/public/browser/browser_url_handler.h" | 164 #include "content/public/browser/browser_url_handler.h" |
164 #include "content/public/browser/browsing_data_filter_builder.h" | 165 #include "content/public/browser/browsing_data_filter_builder.h" |
165 #include "content/public/browser/browsing_data_remover.h" | 166 #include "content/public/browser/browsing_data_remover.h" |
(...skipping 2934 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3100 registry->AddInterface( | 3101 registry->AddInterface( |
3101 base::Bind(&startup_metric_utils::StartupMetricHostImpl::Create), | 3102 base::Bind(&startup_metric_utils::StartupMetricHostImpl::Create), |
3102 ui_task_runner); | 3103 ui_task_runner); |
3103 registry->AddInterface( | 3104 registry->AddInterface( |
3104 base::Bind(&BudgetServiceImpl::Create, render_process_host->GetID()), | 3105 base::Bind(&BudgetServiceImpl::Create, render_process_host->GetID()), |
3105 ui_task_runner); | 3106 ui_task_runner); |
3106 registry->AddInterface( | 3107 registry->AddInterface( |
3107 base::Bind(&rappor::RapporRecorderImpl::Create, | 3108 base::Bind(&rappor::RapporRecorderImpl::Create, |
3108 g_browser_process->rappor_service()), | 3109 g_browser_process->rappor_service()), |
3109 ui_task_runner); | 3110 ui_task_runner); |
| 3111 registry->AddInterface( |
| 3112 base::Bind(&ukm::UkmInterface::Create, g_browser_process->ukm_recorder()), |
| 3113 ui_task_runner); |
3110 if (NetBenchmarking::CheckBenchmarkingEnabled()) { | 3114 if (NetBenchmarking::CheckBenchmarkingEnabled()) { |
3111 Profile* profile = | 3115 Profile* profile = |
3112 Profile::FromBrowserContext(render_process_host->GetBrowserContext()); | 3116 Profile::FromBrowserContext(render_process_host->GetBrowserContext()); |
3113 net::URLRequestContextGetter* context = | 3117 net::URLRequestContextGetter* context = |
3114 render_process_host->GetStoragePartition()->GetURLRequestContext(); | 3118 render_process_host->GetStoragePartition()->GetURLRequestContext(); |
3115 registry->AddInterface( | 3119 registry->AddInterface( |
3116 base::Bind(&NetBenchmarking::Create, profile, context)); | 3120 base::Bind(&NetBenchmarking::Create, profile, context)); |
3117 } | 3121 } |
3118 #if defined(OS_WIN) | 3122 #if defined(OS_WIN) |
3119 if (base::FeatureList::IsEnabled(features::kModuleDatabase)) { | 3123 if (base::FeatureList::IsEnabled(features::kModuleDatabase)) { |
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3609 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { | 3613 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { |
3610 return variations::GetVariationParamValue( | 3614 return variations::GetVariationParamValue( |
3611 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; | 3615 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; |
3612 } | 3616 } |
3613 | 3617 |
3614 // static | 3618 // static |
3615 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( | 3619 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( |
3616 const storage::QuotaSettings* settings) { | 3620 const storage::QuotaSettings* settings) { |
3617 g_default_quota_settings = settings; | 3621 g_default_quota_settings = settings; |
3618 } | 3622 } |
OLD | NEW |