| 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/app/cast_main_delegate.h" | 5 #include "chromecast/app/cast_main_delegate.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/cpu.h" | 10 #include "base/cpu.h" |
| 11 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/path_service.h" | 13 #include "base/path_service.h" |
| 14 #include "base/posix/global_descriptors.h" | 14 #include "base/posix/global_descriptors.h" |
| 15 #include "chromecast/base/cast_paths.h" | 15 #include "chromecast/base/cast_paths.h" |
| 16 #include "chromecast/browser/cast_content_browser_client.h" | 16 #include "chromecast/browser/cast_content_browser_client.h" |
| 17 #include "chromecast/common/cast_resource_delegate.h" | 17 #include "chromecast/common/cast_resource_delegate.h" |
| 18 #include "chromecast/common/global_descriptors.h" | 18 #include "chromecast/common/global_descriptors.h" |
| 19 #include "chromecast/crash/cast_crash_reporter_client.h" | |
| 20 #include "chromecast/renderer/cast_content_renderer_client.h" | 19 #include "chromecast/renderer/cast_content_renderer_client.h" |
| 21 #include "components/crash/app/crash_reporter_client.h" | 20 #include "components/crash/app/crash_reporter_client.h" |
| 22 #include "content/public/browser/browser_main_runner.h" | 21 #include "content/public/browser/browser_main_runner.h" |
| 23 #include "content/public/common/content_switches.h" | 22 #include "content/public/common/content_switches.h" |
| 24 #include "ui/base/resource/resource_bundle.h" | 23 #include "ui/base/resource/resource_bundle.h" |
| 25 | 24 |
| 26 #if defined(OS_ANDROID) | 25 #if defined(OS_ANDROID) |
| 27 #include "chromecast/crash/android/crash_handler.h" | 26 #include "chromecast/crash/android/crash_handler.h" |
| 27 #else |
| 28 #include "chromecast/app/linux/cast_crash_reporter_client.h" |
| 28 #endif // defined(OS_ANDROID) | 29 #endif // defined(OS_ANDROID) |
| 29 | 30 |
| 30 namespace { | 31 namespace { |
| 31 | 32 |
| 32 #if !defined(OS_ANDROID) | 33 #if !defined(OS_ANDROID) |
| 33 base::LazyInstance<chromecast::CastCrashReporterClient>::Leaky | 34 base::LazyInstance<chromecast::CastCrashReporterClient>::Leaky |
| 34 g_crash_reporter_client = LAZY_INSTANCE_INITIALIZER; | 35 g_crash_reporter_client = LAZY_INSTANCE_INITIALIZER; |
| 35 #endif // !defined(OS_ANDROID) | 36 #endif // !defined(OS_ANDROID) |
| 36 | 37 |
| 37 } // namespace | 38 } // namespace |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 } | 162 } |
| 162 | 163 |
| 163 content::ContentRendererClient* | 164 content::ContentRendererClient* |
| 164 CastMainDelegate::CreateContentRendererClient() { | 165 CastMainDelegate::CreateContentRendererClient() { |
| 165 renderer_client_ = CastContentRendererClient::Create(); | 166 renderer_client_ = CastContentRendererClient::Create(); |
| 166 return renderer_client_.get(); | 167 return renderer_client_.get(); |
| 167 } | 168 } |
| 168 | 169 |
| 169 } // namespace shell | 170 } // namespace shell |
| 170 } // namespace chromecast | 171 } // namespace chromecast |
| OLD | NEW |