| 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_main_parts.h" | 5 #include "chromecast/browser/cast_browser_main_parts.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <string.h> | 8 #include <string.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
| 13 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/memory/ptr_util.h" | 15 #include "base/memory/ptr_util.h" |
| 16 #include "base/message_loop/message_loop.h" | 16 #include "base/message_loop/message_loop.h" |
| 17 #include "base/path_service.h" | 17 #include "base/path_service.h" |
| 18 #include "base/run_loop.h" | 18 #include "base/run_loop.h" |
| 19 #include "base/thread_task_runner_handle.h" | |
| 20 #include "base/threading/thread.h" | 19 #include "base/threading/thread.h" |
| 20 #include "base/threading/thread_task_runner_handle.h" |
| 21 #include "build/build_config.h" | 21 #include "build/build_config.h" |
| 22 #include "cc/base/switches.h" | 22 #include "cc/base/switches.h" |
| 23 #include "chromecast/base/cast_constants.h" | 23 #include "chromecast/base/cast_constants.h" |
| 24 #include "chromecast/base/cast_paths.h" | 24 #include "chromecast/base/cast_paths.h" |
| 25 #include "chromecast/base/cast_sys_info_util.h" | 25 #include "chromecast/base/cast_sys_info_util.h" |
| 26 #include "chromecast/base/chromecast_switches.h" | 26 #include "chromecast/base/chromecast_switches.h" |
| 27 #include "chromecast/base/metrics/cast_metrics_helper.h" | 27 #include "chromecast/base/metrics/cast_metrics_helper.h" |
| 28 #include "chromecast/base/metrics/grouped_histogram.h" | 28 #include "chromecast/base/metrics/grouped_histogram.h" |
| 29 #include "chromecast/browser/cast_browser_context.h" | 29 #include "chromecast/browser/cast_browser_context.h" |
| 30 #include "chromecast/browser/cast_browser_process.h" | 30 #include "chromecast/browser/cast_browser_process.h" |
| (...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 void CastBrowserMainParts::PostDestroyThreads() { | 503 void CastBrowserMainParts::PostDestroyThreads() { |
| 504 #if !defined(OS_ANDROID) | 504 #if !defined(OS_ANDROID) |
| 505 media_resource_tracker_->FinalizeAndDestroy(); | 505 media_resource_tracker_->FinalizeAndDestroy(); |
| 506 media_resource_tracker_ = nullptr; | 506 media_resource_tracker_ = nullptr; |
| 507 media_pipeline_backend_manager_.reset(); | 507 media_pipeline_backend_manager_.reset(); |
| 508 #endif | 508 #endif |
| 509 } | 509 } |
| 510 | 510 |
| 511 } // namespace shell | 511 } // namespace shell |
| 512 } // namespace chromecast | 512 } // namespace chromecast |
| OLD | NEW |