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/browser/cast_browser_process.h" | 5 #include "chromecast/browser/cast_browser_process.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chromecast/base/metrics/cast_metrics_helper.h" |
8 #include "chromecast/browser/cast_browser_context.h" | 9 #include "chromecast/browser/cast_browser_context.h" |
9 #include "chromecast/browser/devtools/remote_debugging_server.h" | 10 #include "chromecast/browser/devtools/remote_debugging_server.h" |
10 #include "chromecast/browser/metrics/cast_metrics_service_client.h" | 11 #include "chromecast/browser/metrics/cast_metrics_service_client.h" |
11 #include "chromecast/browser/service/cast_service.h" | 12 #include "chromecast/browser/service/cast_service.h" |
12 | 13 |
13 #if defined(OS_ANDROID) | 14 #if defined(OS_ANDROID) |
14 #include "components/crash/browser/crash_dump_manager_android.h" | 15 #include "components/crash/browser/crash_dump_manager_android.h" |
15 #endif // defined(OS_ANDROID) | 16 #endif // defined(OS_ANDROID) |
16 | 17 |
17 namespace chromecast { | 18 namespace chromecast { |
(...skipping 29 matching lines...) Expand all Loading... |
47 DCHECK(!cast_service_); | 48 DCHECK(!cast_service_); |
48 cast_service_.reset(cast_service); | 49 cast_service_.reset(cast_service); |
49 } | 50 } |
50 | 51 |
51 void CastBrowserProcess::SetRemoteDebuggingServer( | 52 void CastBrowserProcess::SetRemoteDebuggingServer( |
52 RemoteDebuggingServer* remote_debugging_server) { | 53 RemoteDebuggingServer* remote_debugging_server) { |
53 DCHECK(!remote_debugging_server_); | 54 DCHECK(!remote_debugging_server_); |
54 remote_debugging_server_.reset(remote_debugging_server); | 55 remote_debugging_server_.reset(remote_debugging_server); |
55 } | 56 } |
56 | 57 |
| 58 void CastBrowserProcess::SetMetricsHelper( |
| 59 metrics::CastMetricsHelper* metrics_helper) { |
| 60 DCHECK(!metrics_helper_); |
| 61 metrics_helper_.reset(metrics_helper); |
| 62 } |
| 63 |
57 void CastBrowserProcess::SetMetricsServiceClient( | 64 void CastBrowserProcess::SetMetricsServiceClient( |
58 metrics::CastMetricsServiceClient* metrics_service_client) { | 65 metrics::CastMetricsServiceClient* metrics_service_client) { |
59 DCHECK(!metrics_service_client_); | 66 DCHECK(!metrics_service_client_); |
60 metrics_service_client_.reset(metrics_service_client); | 67 metrics_service_client_.reset(metrics_service_client); |
61 } | 68 } |
62 | 69 |
63 #if defined(OS_ANDROID) | 70 #if defined(OS_ANDROID) |
64 void CastBrowserProcess::SetCrashDumpManager( | 71 void CastBrowserProcess::SetCrashDumpManager( |
65 breakpad::CrashDumpManager* crash_dump_manager) { | 72 breakpad::CrashDumpManager* crash_dump_manager) { |
66 DCHECK(!crash_dump_manager_); | 73 DCHECK(!crash_dump_manager_); |
67 crash_dump_manager_.reset(crash_dump_manager); | 74 crash_dump_manager_.reset(crash_dump_manager); |
68 } | 75 } |
69 #endif // defined(OS_ANDROID) | 76 #endif // defined(OS_ANDROID) |
70 | 77 |
71 } // namespace shell | 78 } // namespace shell |
72 } // namespace chromecast | 79 } // namespace chromecast |
OLD | NEW |