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

Side by Side Diff: chromecast/app/cast_main_delegate.cc

Issue 1824723003: [chromecast] Pass media task runner to VideoPlaneController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: fixed android build Created 4 years, 9 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
« no previous file with comments | « chromecast/app/cast_main_delegate.h ('k') | chromecast/browser/cast_browser_main_parts.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/app/cast_main_delegate.h" 5 #include "chromecast/app/cast_main_delegate.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 158
159 // Note: Android must handle running its own browser process. 159 // Note: Android must handle running its own browser process.
160 // See ChromeMainDelegateAndroid::RunProcess. 160 // See ChromeMainDelegateAndroid::RunProcess.
161 browser_runner_.reset(content::BrowserMainRunner::Create()); 161 browser_runner_.reset(content::BrowserMainRunner::Create());
162 return browser_runner_->Initialize(main_function_params); 162 return browser_runner_->Initialize(main_function_params);
163 #else 163 #else
164 return -1; 164 return -1;
165 #endif // defined(OS_ANDROID) 165 #endif // defined(OS_ANDROID)
166 } 166 }
167 167
168 void CastMainDelegate::ProcessExiting(const std::string& process_type) {
169 if (process_type.empty())
170 browser_client_->ProcessExiting();
171 }
172
173 #if !defined(OS_ANDROID) 168 #if !defined(OS_ANDROID)
174 void CastMainDelegate::ZygoteForked() { 169 void CastMainDelegate::ZygoteForked() {
175 const base::CommandLine* command_line(base::CommandLine::ForCurrentProcess()); 170 const base::CommandLine* command_line(base::CommandLine::ForCurrentProcess());
176 std::string process_type = 171 std::string process_type =
177 command_line->GetSwitchValueASCII(switches::kProcessType); 172 command_line->GetSwitchValueASCII(switches::kProcessType);
178 CastCrashReporterClient::InitCrashReporter(process_type); 173 CastCrashReporterClient::InitCrashReporter(process_type);
179 } 174 }
180 #endif // !defined(OS_ANDROID) 175 #endif // !defined(OS_ANDROID)
181 176
182 void CastMainDelegate::InitializeResourceBundle() { 177 void CastMainDelegate::InitializeResourceBundle() {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 return renderer_client_.get(); 230 return renderer_client_.get();
236 } 231 }
237 232
238 content::ContentUtilityClient* CastMainDelegate::CreateContentUtilityClient() { 233 content::ContentUtilityClient* CastMainDelegate::CreateContentUtilityClient() {
239 utility_client_ = CastContentUtilityClient::Create(); 234 utility_client_ = CastContentUtilityClient::Create();
240 return utility_client_.get(); 235 return utility_client_.get();
241 } 236 }
242 237
243 } // namespace shell 238 } // namespace shell
244 } // namespace chromecast 239 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/app/cast_main_delegate.h ('k') | chromecast/browser/cast_browser_main_parts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698