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

Unified Diff: remoting/client/ios/app_runtime.cc

Issue 2679293002: Fix TaskScheduler initialization in remoting processes. (Closed)
Patch Set: Created 3 years, 10 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
Index: remoting/client/ios/app_runtime.cc
diff --git a/remoting/client/ios/app_runtime.cc b/remoting/client/ios/app_runtime.cc
index 5e0ad6b82f9afd0cd1640bcb2ca47c4ad8c05d9c..36b75d3221726072e764ece725ca55a1563ed350 100644
--- a/remoting/client/ios/app_runtime.cc
+++ b/remoting/client/ios/app_runtime.cc
@@ -31,7 +31,7 @@ namespace ios {
AppRuntime::AppRuntime() {
// TODO(sergeyu): Consider adding separate pools for different task classes.
const int kMaxBackgroundThreads = 5;
- if (TaskScheduler::GetInstance()) {
+ if (!TaskScheduler::GetInstance()) {
// Make sure TaskScheduler is initialized.
base::TaskScheduler::CreateAndSetSimpleTaskScheduler(kMaxBackgroundThreads);
}
« no previous file with comments | « no previous file | remoting/client/jni/chromoting_jni_runtime.cc » ('j') | remoting/client/jni/chromoting_jni_runtime.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698