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

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

Issue 2453313004: Convert FieldTrialActivated to use mojo. (Closed)
Patch Set: Convert FieldTrialActivated to use mojo. Created 4 years, 1 month 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 | « chrome/browser/BUILD.gn ('k') | chrome/browser/chrome_content_browser_manifest_overlay.json » ('j') | no next file with comments »
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/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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #include "chrome/browser/character_encoding.h" 42 #include "chrome/browser/character_encoding.h"
43 #include "chrome/browser/chrome_content_browser_client_parts.h" 43 #include "chrome/browser/chrome_content_browser_client_parts.h"
44 #include "chrome/browser/chrome_net_benchmarking_message_filter.h" 44 #include "chrome/browser/chrome_net_benchmarking_message_filter.h"
45 #include "chrome/browser/chrome_quota_permission_context.h" 45 #include "chrome/browser/chrome_quota_permission_context.h"
46 #include "chrome/browser/content_settings/cookie_settings_factory.h" 46 #include "chrome/browser/content_settings/cookie_settings_factory.h"
47 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" 47 #include "chrome/browser/content_settings/host_content_settings_map_factory.h"
48 #include "chrome/browser/content_settings/tab_specific_content_settings.h" 48 #include "chrome/browser/content_settings/tab_specific_content_settings.h"
49 #include "chrome/browser/defaults.h" 49 #include "chrome/browser/defaults.h"
50 #include "chrome/browser/download/download_prefs.h" 50 #include "chrome/browser/download/download_prefs.h"
51 #include "chrome/browser/engagement/site_engagement_eviction_policy.h" 51 #include "chrome/browser/engagement/site_engagement_eviction_policy.h"
52 #include "chrome/browser/field_trial_recorder.h"
52 #include "chrome/browser/font_family_cache.h" 53 #include "chrome/browser/font_family_cache.h"
53 #include "chrome/browser/media/webrtc/media_capture_devices_dispatcher.h" 54 #include "chrome/browser/media/webrtc/media_capture_devices_dispatcher.h"
54 #include "chrome/browser/memory/chrome_memory_coordinator_delegate.h" 55 #include "chrome/browser/memory/chrome_memory_coordinator_delegate.h"
55 #include "chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h" 56 #include "chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h"
56 #include "chrome/browser/nacl_host/nacl_browser_delegate_impl.h" 57 #include "chrome/browser/nacl_host/nacl_browser_delegate_impl.h"
57 #include "chrome/browser/notifications/platform_notification_service_impl.h" 58 #include "chrome/browser/notifications/platform_notification_service_impl.h"
58 #include "chrome/browser/page_load_metrics/metrics_navigation_throttle.h" 59 #include "chrome/browser/page_load_metrics/metrics_navigation_throttle.h"
59 #include "chrome/browser/password_manager/chrome_password_manager_client.h" 60 #include "chrome/browser/password_manager/chrome_password_manager_client.h"
60 #include "chrome/browser/permissions/permission_context_base.h" 61 #include "chrome/browser/permissions/permission_context_base.h"
61 #include "chrome/browser/platform_util.h" 62 #include "chrome/browser/platform_util.h"
(...skipping 2829 matching lines...) Expand 10 before | Expand all | Expand 10 after
2891 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner = 2892 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner =
2892 content::BrowserThread::GetTaskRunnerForThread( 2893 content::BrowserThread::GetTaskRunnerForThread(
2893 content::BrowserThread::UI); 2894 content::BrowserThread::UI);
2894 registry->AddInterface( 2895 registry->AddInterface(
2895 base::Bind(&startup_metric_utils::StartupMetricHostImpl::Create), 2896 base::Bind(&startup_metric_utils::StartupMetricHostImpl::Create),
2896 ui_task_runner); 2897 ui_task_runner);
2897 registry->AddInterface( 2898 registry->AddInterface(
2898 base::Bind(&BudgetServiceImpl::Create, render_process_host->GetID()), 2899 base::Bind(&BudgetServiceImpl::Create, render_process_host->GetID()),
2899 ui_task_runner); 2900 ui_task_runner);
2900 registry->AddInterface( 2901 registry->AddInterface(
2902 base::Bind(&FieldTrialRecorder::Create),
2903 ui_task_runner);
2904 registry->AddInterface(
2901 base::Bind(&rappor::RapporRecorderImpl::Create, 2905 base::Bind(&rappor::RapporRecorderImpl::Create,
2902 g_browser_process->rappor_service()), 2906 g_browser_process->rappor_service()),
2903 ui_task_runner); 2907 ui_task_runner);
2904 2908
2905 #if defined(OS_CHROMEOS) 2909 #if defined(OS_CHROMEOS)
2906 registry->AddInterface<metrics::mojom::LeakDetector>( 2910 registry->AddInterface<metrics::mojom::LeakDetector>(
2907 base::Bind(&metrics::LeakDetectorRemoteController::Create), 2911 base::Bind(&metrics::LeakDetectorRemoteController::Create),
2908 ui_task_runner); 2912 ui_task_runner);
2909 #endif 2913 #endif
2910 } 2914 }
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
3239 kWebRtcDevSwitchNames, 3243 kWebRtcDevSwitchNames,
3240 arraysize(kWebRtcDevSwitchNames)); 3244 arraysize(kWebRtcDevSwitchNames));
3241 } 3245 }
3242 } 3246 }
3243 #endif // defined(ENABLE_WEBRTC) 3247 #endif // defined(ENABLE_WEBRTC)
3244 3248
3245 std::unique_ptr<content::MemoryCoordinatorDelegate> 3249 std::unique_ptr<content::MemoryCoordinatorDelegate>
3246 ChromeContentBrowserClient::GetMemoryCoordinatorDelegate() { 3250 ChromeContentBrowserClient::GetMemoryCoordinatorDelegate() {
3247 return memory::ChromeMemoryCoordinatorDelegate::Create(); 3251 return memory::ChromeMemoryCoordinatorDelegate::Create();
3248 } 3252 }
OLDNEW
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/chrome_content_browser_manifest_overlay.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698