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

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2376403003: Convert RapporRecorder to use mojo. (Closed)
Patch Set: Convert RapporRecorder to use mojo. Created 4 years, 2 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
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/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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 #include "components/error_page/common/error_page_switches.h" 127 #include "components/error_page/common/error_page_switches.h"
128 #include "components/google/core/browser/google_util.h" 128 #include "components/google/core/browser/google_util.h"
129 #include "components/metrics/call_stack_profile_collector.h" 129 #include "components/metrics/call_stack_profile_collector.h"
130 #include "components/metrics/client_info.h" 130 #include "components/metrics/client_info.h"
131 #include "components/net_log/chrome_net_log.h" 131 #include "components/net_log/chrome_net_log.h"
132 #include "components/password_manager/content/browser/content_password_manager_d river_factory.h" 132 #include "components/password_manager/content/browser/content_password_manager_d river_factory.h"
133 #include "components/pref_registry/pref_registry_syncable.h" 133 #include "components/pref_registry/pref_registry_syncable.h"
134 #include "components/prefs/pref_service.h" 134 #include "components/prefs/pref_service.h"
135 #include "components/prefs/scoped_user_pref_update.h" 135 #include "components/prefs/scoped_user_pref_update.h"
136 #include "components/rappor/rappor_utils.h" 136 #include "components/rappor/rappor_utils.h"
137 #include "components/rappor/recorder/rappor_recorder_impl.h"
137 #include "components/security_interstitials/core/ssl_error_ui.h" 138 #include "components/security_interstitials/core/ssl_error_ui.h"
138 #include "components/signin/core/common/profile_management_switches.h" 139 #include "components/signin/core/common/profile_management_switches.h"
139 #include "components/startup_metric_utils/browser/startup_metric_host_impl.h" 140 #include "components/startup_metric_utils/browser/startup_metric_host_impl.h"
140 #include "components/subresource_filter/content/browser/content_subresource_filt er_driver_factory.h" 141 #include "components/subresource_filter/content/browser/content_subresource_filt er_driver_factory.h"
141 #include "components/subresource_filter/content/browser/subresource_filter_navig ation_throttle.h" 142 #include "components/subresource_filter/content/browser/subresource_filter_navig ation_throttle.h"
142 #include "components/translate/core/common/translate_switches.h" 143 #include "components/translate/core/common/translate_switches.h"
143 #include "components/url_formatter/url_fixer.h" 144 #include "components/url_formatter/url_fixer.h"
144 #include "components/variations/variations_associated_data.h" 145 #include "components/variations/variations_associated_data.h"
145 #include "components/version_info/version_info.h" 146 #include "components/version_info/version_info.h"
146 #include "content/public/browser/browser_child_process_host.h" 147 #include "content/public/browser/browser_child_process_host.h"
(...skipping 2785 matching lines...) Expand 10 before | Expand all | Expand 10 after
2932 content::RenderProcessHost* render_process_host) { 2933 content::RenderProcessHost* render_process_host) {
2933 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner = 2934 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner =
2934 content::BrowserThread::GetTaskRunnerForThread( 2935 content::BrowserThread::GetTaskRunnerForThread(
2935 content::BrowserThread::UI); 2936 content::BrowserThread::UI);
2936 registry->AddInterface( 2937 registry->AddInterface(
2937 base::Bind(&startup_metric_utils::StartupMetricHostImpl::Create), 2938 base::Bind(&startup_metric_utils::StartupMetricHostImpl::Create),
2938 ui_task_runner); 2939 ui_task_runner);
2939 registry->AddInterface( 2940 registry->AddInterface(
2940 base::Bind(&BudgetServiceImpl::Create, render_process_host->GetID()), 2941 base::Bind(&BudgetServiceImpl::Create, render_process_host->GetID()),
2941 ui_task_runner); 2942 ui_task_runner);
2943 registry->AddInterface(
2944 base::Bind(&rappor::RapporRecorderImpl::Create,
2945 g_browser_process->rappor_service()),
2946 ui_task_runner);
2942 2947
2943 #if defined(OS_CHROMEOS) 2948 #if defined(OS_CHROMEOS)
2944 registry->AddInterface<metrics::mojom::LeakDetector>( 2949 registry->AddInterface<metrics::mojom::LeakDetector>(
2945 base::Bind(&metrics::LeakDetectorRemoteController::Create), 2950 base::Bind(&metrics::LeakDetectorRemoteController::Create),
2946 ui_task_runner); 2951 ui_task_runner);
2947 #endif 2952 #endif
2948 } 2953 }
2949 2954
2950 void ChromeContentBrowserClient::ExposeInterfacesToMediaService( 2955 void ChromeContentBrowserClient::ExposeInterfacesToMediaService(
2951 shell::InterfaceRegistry* registry, 2956 shell::InterfaceRegistry* registry,
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
3278 if (channel <= kMaxDisableEncryptionChannel) { 3283 if (channel <= kMaxDisableEncryptionChannel) {
3279 static const char* const kWebRtcDevSwitchNames[] = { 3284 static const char* const kWebRtcDevSwitchNames[] = {
3280 switches::kDisableWebRtcEncryption, 3285 switches::kDisableWebRtcEncryption,
3281 }; 3286 };
3282 to_command_line->CopySwitchesFrom(from_command_line, 3287 to_command_line->CopySwitchesFrom(from_command_line,
3283 kWebRtcDevSwitchNames, 3288 kWebRtcDevSwitchNames,
3284 arraysize(kWebRtcDevSwitchNames)); 3289 arraysize(kWebRtcDevSwitchNames));
3285 } 3290 }
3286 } 3291 }
3287 #endif // defined(ENABLE_WEBRTC) 3292 #endif // defined(ENABLE_WEBRTC)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698