OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chromecast/shell/browser/cast_browser_process.h" | 5 #include "chromecast/shell/browser/cast_browser_process.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "chromecast/metrics/cast_metrics_service_client.h" | 8 #include "chromecast/metrics/cast_metrics_service_client.h" |
9 #include "chromecast/service/cast_service.h" | 9 #include "chromecast/service/cast_service.h" |
10 #include "chromecast/shell/browser/cast_browser_context.h" | 10 #include "chromecast/shell/browser/cast_browser_context.h" |
11 #include "chromecast/shell/browser/devtools/remote_debugging_server.h" | 11 #include "chromecast/shell/browser/devtools/remote_debugging_server.h" |
12 | 12 |
| 13 #if defined(OS_ANDROID) |
| 14 #include "components/crash/browser/crash_dump_manager_android.h" |
| 15 #endif // defined(OS_ANDROID) |
| 16 |
13 namespace chromecast { | 17 namespace chromecast { |
14 namespace shell { | 18 namespace shell { |
15 | 19 |
16 namespace { | 20 namespace { |
17 CastBrowserProcess* g_instance = NULL; | 21 CastBrowserProcess* g_instance = NULL; |
18 } // namespace | 22 } // namespace |
19 | 23 |
20 // static | 24 // static |
21 CastBrowserProcess* CastBrowserProcess::GetInstance() { | 25 CastBrowserProcess* CastBrowserProcess::GetInstance() { |
22 DCHECK(g_instance); | 26 DCHECK(g_instance); |
(...skipping 26 matching lines...) Expand all Loading... |
49 DCHECK(!remote_debugging_server_); | 53 DCHECK(!remote_debugging_server_); |
50 remote_debugging_server_.reset(remote_debugging_server); | 54 remote_debugging_server_.reset(remote_debugging_server); |
51 } | 55 } |
52 | 56 |
53 void CastBrowserProcess::SetMetricsServiceClient( | 57 void CastBrowserProcess::SetMetricsServiceClient( |
54 metrics::CastMetricsServiceClient* metrics_service_client) { | 58 metrics::CastMetricsServiceClient* metrics_service_client) { |
55 DCHECK(!metrics_service_client_); | 59 DCHECK(!metrics_service_client_); |
56 metrics_service_client_.reset(metrics_service_client); | 60 metrics_service_client_.reset(metrics_service_client); |
57 } | 61 } |
58 | 62 |
| 63 #if defined(OS_ANDROID) |
| 64 void CastBrowserProcess::SetCrashDumpManager( |
| 65 breakpad::CrashDumpManager* crash_dump_manager) { |
| 66 DCHECK(!crash_dump_manager_); |
| 67 crash_dump_manager_.reset(crash_dump_manager); |
| 68 } |
| 69 #endif // defined(OS_ANDROID) |
| 70 |
59 } // namespace shell | 71 } // namespace shell |
60 } // namespace chromecast | 72 } // namespace chromecast |
OLD | NEW |