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

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

Issue 2510803003: Pass RapporService to content/browser/ (Closed)
Patch Set: Fix more compile errors in JNI files Created 4 years 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/browser_process_impl.h" 5 #include "chrome/browser/browser_process_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <map> 10 #include <map>
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 #include "components/metrics/metrics_service.h" 91 #include "components/metrics/metrics_service.h"
92 #include "components/metrics_services_manager/metrics_services_manager.h" 92 #include "components/metrics_services_manager/metrics_services_manager.h"
93 #include "components/net_log/chrome_net_log.h" 93 #include "components/net_log/chrome_net_log.h"
94 #include "components/network_time/network_time_tracker.h" 94 #include "components/network_time/network_time_tracker.h"
95 #include "components/physical_web/data_source/physical_web_data_source.h" 95 #include "components/physical_web/data_source/physical_web_data_source.h"
96 #include "components/policy/core/browser/browser_policy_connector.h" 96 #include "components/policy/core/browser/browser_policy_connector.h"
97 #include "components/policy/core/common/policy_service.h" 97 #include "components/policy/core/common/policy_service.h"
98 #include "components/prefs/json_pref_store.h" 98 #include "components/prefs/json_pref_store.h"
99 #include "components/prefs/pref_registry_simple.h" 99 #include "components/prefs/pref_registry_simple.h"
100 #include "components/prefs/pref_service.h" 100 #include "components/prefs/pref_service.h"
101 #include "components/rappor/rappor_utils.h" 101 #include "components/rappor/public/rappor_utils.h"
102 #include "components/rappor/rappor_service_impl.h"
102 #include "components/safe_json/safe_json_parser.h" 103 #include "components/safe_json/safe_json_parser.h"
103 #include "components/signin/core/common/profile_management_switches.h" 104 #include "components/signin/core/common/profile_management_switches.h"
104 #include "components/subresource_filter/content/browser/content_ruleset_service_ delegate.h" 105 #include "components/subresource_filter/content/browser/content_ruleset_service_ delegate.h"
105 #include "components/subresource_filter/core/browser/ruleset_service.h" 106 #include "components/subresource_filter/core/browser/ruleset_service.h"
106 #include "components/subresource_filter/core/browser/subresource_filter_constant s.h" 107 #include "components/subresource_filter/core/browser/subresource_filter_constant s.h"
107 #include "components/subresource_filter/core/browser/subresource_filter_features .h" 108 #include "components/subresource_filter/core/browser/subresource_filter_features .h"
108 #include "components/translate/core/browser/translate_download_manager.h" 109 #include "components/translate/core/browser/translate_download_manager.h"
109 #include "components/update_client/update_query_params.h" 110 #include "components/update_client/update_query_params.h"
110 #include "components/web_resource/web_resource_pref_names.h" 111 #include "components/web_resource/web_resource_pref_names.h"
111 #include "content/public/browser/browser_thread.h" 112 #include "content/public/browser/browser_thread.h"
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 local_state()))); 528 local_state())));
528 } 529 }
529 return metrics_services_manager_.get(); 530 return metrics_services_manager_.get();
530 } 531 }
531 532
532 metrics::MetricsService* BrowserProcessImpl::metrics_service() { 533 metrics::MetricsService* BrowserProcessImpl::metrics_service() {
533 DCHECK(CalledOnValidThread()); 534 DCHECK(CalledOnValidThread());
534 return GetMetricsServicesManager()->GetMetricsService(); 535 return GetMetricsServicesManager()->GetMetricsService();
535 } 536 }
536 537
537 rappor::RapporService* BrowserProcessImpl::rappor_service() { 538 rappor::RapporServiceImpl* BrowserProcessImpl::rappor_service() {
538 DCHECK(CalledOnValidThread()); 539 DCHECK(CalledOnValidThread());
539 return GetMetricsServicesManager()->GetRapporService(); 540 return GetMetricsServicesManager()->GetRapporServiceImpl();
540 } 541 }
541 542
542 IOThread* BrowserProcessImpl::io_thread() { 543 IOThread* BrowserProcessImpl::io_thread() {
543 DCHECK(CalledOnValidThread()); 544 DCHECK(CalledOnValidThread());
544 DCHECK(io_thread_.get()); 545 DCHECK(io_thread_.get());
545 return io_thread_.get(); 546 return io_thread_.get();
546 } 547 }
547 548
548 WatchDogThread* BrowserProcessImpl::watchdog_thread() { 549 WatchDogThread* BrowserProcessImpl::watchdog_thread() {
549 DCHECK(CalledOnValidThread()); 550 DCHECK(CalledOnValidThread());
(...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after
1411 } 1412 }
1412 1413
1413 void BrowserProcessImpl::OnAutoupdateTimer() { 1414 void BrowserProcessImpl::OnAutoupdateTimer() {
1414 if (CanAutorestartForUpdate()) { 1415 if (CanAutorestartForUpdate()) {
1415 DLOG(WARNING) << "Detected update. Restarting browser."; 1416 DLOG(WARNING) << "Detected update. Restarting browser.";
1416 RestartBackgroundInstance(); 1417 RestartBackgroundInstance();
1417 } 1418 }
1418 } 1419 }
1419 1420
1420 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) 1421 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698