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

Unified Diff: content/browser/browser_main_loop.cc

Issue 2808343004: android: Fix java launcher thread (Closed)
Patch Set: Created 3 years, 8 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 | « content/browser/android/launcher_thread.cc ('k') | 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 9b6275d08718b0a76e62990aa88fc9828b341ec6..3af4f47fce4470263f826efa02049c2d4ce8b1e9 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -1127,7 +1127,7 @@ int BrowserMainLoop::CreateThreads() {
(*thread_to_start)
.reset(message_loop ? new BrowserProcessSubThread(id, message_loop)
: new BrowserProcessSubThread(id));
- if (!(*thread_to_start)->StartWithOptions(options))
+ if (!message_loop && !(*thread_to_start)->StartWithOptions(options))
gab 2017/04/13 15:39:12 Ah I see, hadn't parsed that this wasn't about add
boliu 2017/04/13 16:30:05 Done.
LOG(FATAL) << "Failed to start the browser thread: id == " << id;
} else {
scoped_refptr<base::SingleThreadTaskRunner> redirection_task_runner =
« no previous file with comments | « content/browser/android/launcher_thread.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698