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

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

Issue 2393853002: Refactor CrashDump*Manager to use a shared CrashDumpObserver singleton. (Closed)
Patch Set: Rebase Created 3 years, 11 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/browser/cast_browser_process.h" 5 #include "chromecast/browser/cast_browser_process.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 DCHECK(!remote_debugging_server_); 101 DCHECK(!remote_debugging_server_);
102 remote_debugging_server_.swap(remote_debugging_server); 102 remote_debugging_server_.swap(remote_debugging_server);
103 } 103 }
104 104
105 void CastBrowserProcess::SetResourceDispatcherHostDelegate( 105 void CastBrowserProcess::SetResourceDispatcherHostDelegate(
106 std::unique_ptr<CastResourceDispatcherHostDelegate> delegate) { 106 std::unique_ptr<CastResourceDispatcherHostDelegate> delegate) {
107 DCHECK(!resource_dispatcher_host_delegate_); 107 DCHECK(!resource_dispatcher_host_delegate_);
108 resource_dispatcher_host_delegate_.swap(delegate); 108 resource_dispatcher_host_delegate_.swap(delegate);
109 } 109 }
110 110
111 #if defined(OS_ANDROID)
112 void CastBrowserProcess::SetCrashDumpManager(
113 std::unique_ptr<breakpad::CrashDumpManager> crash_dump_manager) {
114 DCHECK(!crash_dump_manager_);
115 crash_dump_manager_.swap(crash_dump_manager);
116 }
117 #endif // defined(OS_ANDROID)
118
119 void CastBrowserProcess::SetConnectivityChecker( 111 void CastBrowserProcess::SetConnectivityChecker(
120 scoped_refptr<ConnectivityChecker> connectivity_checker) { 112 scoped_refptr<ConnectivityChecker> connectivity_checker) {
121 DCHECK(!connectivity_checker_); 113 DCHECK(!connectivity_checker_);
122 connectivity_checker_.swap(connectivity_checker); 114 connectivity_checker_.swap(connectivity_checker);
123 } 115 }
124 116
125 void CastBrowserProcess::SetNetLog(net::NetLog* net_log) { 117 void CastBrowserProcess::SetNetLog(net::NetLog* net_log) {
126 DCHECK(!net_log_); 118 DCHECK(!net_log_);
127 net_log_ = net_log; 119 net_log_ = net_log;
128 } 120 }
129 121
130 } // namespace shell 122 } // namespace shell
131 } // namespace chromecast 123 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/browser/cast_browser_process.h ('k') | chromecast/browser/cast_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698