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

Side by Side Diff: chromecast/shell/browser/cast_browser_process.cc

Issue 620673003: Chromecast: adds crash handling for Android build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: style nits Created 6 years, 2 months 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 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 14 matching lines...) Expand all
37 CastBrowserContext* browser_context) { 41 CastBrowserContext* browser_context) {
38 DCHECK(!browser_context_); 42 DCHECK(!browser_context_);
39 browser_context_.reset(browser_context); 43 browser_context_.reset(browser_context);
40 } 44 }
41 45
42 void CastBrowserProcess::SetCastService(CastService* cast_service) { 46 void CastBrowserProcess::SetCastService(CastService* cast_service) {
43 DCHECK(!cast_service_); 47 DCHECK(!cast_service_);
44 cast_service_.reset(cast_service); 48 cast_service_.reset(cast_service);
45 } 49 }
46 50
51 #if defined(OS_ANDROID)
52 void CastBrowserProcess::SetCrashDumpManager(
53 breakpad::CrashDumpManager* crash_dump_manager) {
54 DCHECK(!crash_dump_manager_);
55 crash_dump_manager_.reset(crash_dump_manager);
56 }
57 #endif // defined(OS_ANDROID)
58
47 void CastBrowserProcess::SetRemoteDebuggingServer( 59 void CastBrowserProcess::SetRemoteDebuggingServer(
48 RemoteDebuggingServer* remote_debugging_server) { 60 RemoteDebuggingServer* remote_debugging_server) {
49 DCHECK(!remote_debugging_server_); 61 DCHECK(!remote_debugging_server_);
50 remote_debugging_server_.reset(remote_debugging_server); 62 remote_debugging_server_.reset(remote_debugging_server);
51 } 63 }
52 64
53 void CastBrowserProcess::SetMetricsServiceClient( 65 void CastBrowserProcess::SetMetricsServiceClient(
54 metrics::CastMetricsServiceClient* metrics_service_client) { 66 metrics::CastMetricsServiceClient* metrics_service_client) {
55 DCHECK(!metrics_service_client_); 67 DCHECK(!metrics_service_client_);
56 metrics_service_client_.reset(metrics_service_client); 68 metrics_service_client_.reset(metrics_service_client);
57 } 69 }
58 70
59 } // namespace shell 71 } // namespace shell
60 } // namespace chromecast 72 } // namespace chromecast
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698