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

Unified Diff: content/browser/browser_main_loop.cc

Issue 549303003: Abort if BrowserMainLoops fails to start a browser thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_main_loop.cc
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index 2a34b24ef02542b39966e2ccab814cafb4a13b00..18c682d007bf31f827863b7eb4f948fc18c9de74 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -1046,8 +1046,11 @@ int BrowserMainLoop::BrowserThreadsStarted() {
TRACE_EVENT0(
"startup",
"BrowserMainLoop::BrowserThreadsStarted::InitUserInputMonitor");
- user_input_monitor_ = media::UserInputMonitor::Create(
- io_thread_->message_loop_proxy(), main_thread_->message_loop_proxy());
+ if (io_thread_->message_loop_proxy().get() != NULL &&
Charlie Reis 2014/09/11 23:10:30 If we want to confirm that the cause of this crash
jiayl 2014/09/11 23:55:37 I tested it with your suggestion, but IsRunning()
+ main_thread_->message_loop_proxy().get() != NULL) {
+ user_input_monitor_ = media::UserInputMonitor::Create(
+ io_thread_->message_loop_proxy(), main_thread_->message_loop_proxy());
Charlie Reis 2014/09/11 23:10:30 Can this use task_runner() instead of message_loop
jiayl 2014/09/11 23:55:37 Will do.
+ }
}
{
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698