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

Unified Diff: chromecast/shell/browser/cast_browser_process.cc

Issue 638803002: Reorganizes Chromecast code to better reflect functional dependencies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: extra DEPS: chromecast/crash/android --> chromecast/common 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 side-by-side diff with in-line comments
Download patch
Index: chromecast/shell/browser/cast_browser_process.cc
diff --git a/chromecast/shell/browser/cast_browser_process.cc b/chromecast/shell/browser/cast_browser_process.cc
deleted file mode 100644
index f89e6956ae7970f4919a94875528075e878deaa8..0000000000000000000000000000000000000000
--- a/chromecast/shell/browser/cast_browser_process.cc
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chromecast/shell/browser/cast_browser_process.h"
-
-#include "base/logging.h"
-#include "chromecast/metrics/cast_metrics_service_client.h"
-#include "chromecast/service/cast_service.h"
-#include "chromecast/shell/browser/cast_browser_context.h"
-#include "chromecast/shell/browser/devtools/remote_debugging_server.h"
-
-#if defined(OS_ANDROID)
-#include "components/crash/browser/crash_dump_manager_android.h"
-#endif // defined(OS_ANDROID)
-
-namespace chromecast {
-namespace shell {
-
-namespace {
-CastBrowserProcess* g_instance = NULL;
-} // namespace
-
-// static
-CastBrowserProcess* CastBrowserProcess::GetInstance() {
- DCHECK(g_instance);
- return g_instance;
-}
-
-CastBrowserProcess::CastBrowserProcess() {
- DCHECK(!g_instance);
- g_instance = this;
-}
-
-CastBrowserProcess::~CastBrowserProcess() {
- DCHECK_EQ(g_instance, this);
- g_instance = NULL;
-}
-
-void CastBrowserProcess::SetBrowserContext(
- CastBrowserContext* browser_context) {
- DCHECK(!browser_context_);
- browser_context_.reset(browser_context);
-}
-
-void CastBrowserProcess::SetCastService(CastService* cast_service) {
- DCHECK(!cast_service_);
- cast_service_.reset(cast_service);
-}
-
-void CastBrowserProcess::SetRemoteDebuggingServer(
- RemoteDebuggingServer* remote_debugging_server) {
- DCHECK(!remote_debugging_server_);
- remote_debugging_server_.reset(remote_debugging_server);
-}
-
-void CastBrowserProcess::SetMetricsServiceClient(
- metrics::CastMetricsServiceClient* metrics_service_client) {
- DCHECK(!metrics_service_client_);
- metrics_service_client_.reset(metrics_service_client);
-}
-
-#if defined(OS_ANDROID)
-void CastBrowserProcess::SetCrashDumpManager(
- breakpad::CrashDumpManager* crash_dump_manager) {
- DCHECK(!crash_dump_manager_);
- crash_dump_manager_.reset(crash_dump_manager);
-}
-#endif // defined(OS_ANDROID)
-
-} // namespace shell
-} // namespace chromecast
« no previous file with comments | « chromecast/shell/browser/cast_browser_process.h ('k') | chromecast/shell/browser/cast_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698