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 <algorithm> | 7 #include <algorithm> |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 #else | 409 #else |
410 NOTIMPLEMENTED(); | 410 NOTIMPLEMENTED(); |
411 #endif | 411 #endif |
412 } | 412 } |
413 | 413 |
414 MetricsService* BrowserProcessImpl::metrics_service() { | 414 MetricsService* BrowserProcessImpl::metrics_service() { |
415 DCHECK(CalledOnValidThread()); | 415 DCHECK(CalledOnValidThread()); |
416 return GetMetricsServicesManager()->GetMetricsService(); | 416 return GetMetricsServicesManager()->GetMetricsService(); |
417 } | 417 } |
418 | 418 |
| 419 PluginMetricsProvider* BrowserProcessImpl::plugin_metrics_provider() { |
| 420 DCHECK(CalledOnValidThread()); |
| 421 return GetMetricsServicesManager()->GetPluginMetricsProvider(); |
| 422 } |
| 423 |
419 rappor::RapporService* BrowserProcessImpl::rappor_service() { | 424 rappor::RapporService* BrowserProcessImpl::rappor_service() { |
420 DCHECK(CalledOnValidThread()); | 425 DCHECK(CalledOnValidThread()); |
421 return GetMetricsServicesManager()->GetRapporService(); | 426 return GetMetricsServicesManager()->GetRapporService(); |
422 } | 427 } |
423 | 428 |
424 IOThread* BrowserProcessImpl::io_thread() { | 429 IOThread* BrowserProcessImpl::io_thread() { |
425 DCHECK(CalledOnValidThread()); | 430 DCHECK(CalledOnValidThread()); |
426 DCHECK(io_thread_.get()); | 431 DCHECK(io_thread_.get()); |
427 return io_thread_.get(); | 432 return io_thread_.get(); |
428 } | 433 } |
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1049 } | 1054 } |
1050 | 1055 |
1051 void BrowserProcessImpl::OnAutoupdateTimer() { | 1056 void BrowserProcessImpl::OnAutoupdateTimer() { |
1052 if (CanAutorestartForUpdate()) { | 1057 if (CanAutorestartForUpdate()) { |
1053 DLOG(WARNING) << "Detected update. Restarting browser."; | 1058 DLOG(WARNING) << "Detected update. Restarting browser."; |
1054 RestartBackgroundInstance(); | 1059 RestartBackgroundInstance(); |
1055 } | 1060 } |
1056 } | 1061 } |
1057 | 1062 |
1058 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 1063 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
OLD | NEW |