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/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 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 metrics::MetricsService* BrowserProcessImpl::metrics_service() { | 534 metrics::MetricsService* BrowserProcessImpl::metrics_service() { |
535 DCHECK(CalledOnValidThread()); | 535 DCHECK(CalledOnValidThread()); |
536 return GetMetricsServicesManager()->GetMetricsService(); | 536 return GetMetricsServicesManager()->GetMetricsService(); |
537 } | 537 } |
538 | 538 |
539 rappor::RapporServiceImpl* BrowserProcessImpl::rappor_service() { | 539 rappor::RapporServiceImpl* BrowserProcessImpl::rappor_service() { |
540 DCHECK(CalledOnValidThread()); | 540 DCHECK(CalledOnValidThread()); |
541 return GetMetricsServicesManager()->GetRapporServiceImpl(); | 541 return GetMetricsServicesManager()->GetRapporServiceImpl(); |
542 } | 542 } |
543 | 543 |
| 544 ukm::UkmService* BrowserProcessImpl::ukm_service() { |
| 545 DCHECK(CalledOnValidThread()); |
| 546 return GetMetricsServicesManager()->GetUkmService(); |
| 547 } |
| 548 |
544 IOThread* BrowserProcessImpl::io_thread() { | 549 IOThread* BrowserProcessImpl::io_thread() { |
545 DCHECK(CalledOnValidThread()); | 550 DCHECK(CalledOnValidThread()); |
546 DCHECK(io_thread_.get()); | 551 DCHECK(io_thread_.get()); |
547 return io_thread_.get(); | 552 return io_thread_.get(); |
548 } | 553 } |
549 | 554 |
550 WatchDogThread* BrowserProcessImpl::watchdog_thread() { | 555 WatchDogThread* BrowserProcessImpl::watchdog_thread() { |
551 DCHECK(CalledOnValidThread()); | 556 DCHECK(CalledOnValidThread()); |
552 if (!created_watchdog_thread_) | 557 if (!created_watchdog_thread_) |
553 CreateWatchdogThread(); | 558 CreateWatchdogThread(); |
(...skipping 853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1407 } | 1412 } |
1408 | 1413 |
1409 void BrowserProcessImpl::OnAutoupdateTimer() { | 1414 void BrowserProcessImpl::OnAutoupdateTimer() { |
1410 if (CanAutorestartForUpdate()) { | 1415 if (CanAutorestartForUpdate()) { |
1411 DLOG(WARNING) << "Detected update. Restarting browser."; | 1416 DLOG(WARNING) << "Detected update. Restarting browser."; |
1412 RestartBackgroundInstance(); | 1417 RestartBackgroundInstance(); |
1413 } | 1418 } |
1414 } | 1419 } |
1415 | 1420 |
1416 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 1421 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
OLD | NEW |