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

Unified Diff: remoting/client/jni/chromoting_jni_runtime.cc

Issue 2729523006: Remove the |max_threads| argument from CreateAndSetSimpleTaskScheduler(). (Closed)
Patch Set: self-review Created 3 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 side-by-side diff with in-line comments
Download patch
Index: remoting/client/jni/chromoting_jni_runtime.cc
diff --git a/remoting/client/jni/chromoting_jni_runtime.cc b/remoting/client/jni/chromoting_jni_runtime.cc
index 201683ea6c0572ec8d7c8810fd77c4530c774bd3..3249a7320510a8623c1fe433e3cf9fdff38680c2 100644
--- a/remoting/client/jni/chromoting_jni_runtime.cc
+++ b/remoting/client/jni/chromoting_jni_runtime.cc
@@ -43,9 +43,7 @@ bool RegisterChromotingJniRuntime(JNIEnv* env) {
static void LoadNative(JNIEnv* env, const JavaParamRef<jclass>& clazz) {
base::CommandLine::Init(0, nullptr);
- // TODO(sergeyu): Consider adding separate pools for different task classes.
- const int kMaxBackgroundThreads = 5;
- base::TaskScheduler::CreateAndSetSimpleTaskScheduler(kMaxBackgroundThreads);
+ base::TaskScheduler::CreateAndSetSimpleTaskScheduler("Remoting");
// Create the singleton now so that the Chromoting threads will be set up.
remoting::ChromotingJniRuntime::GetInstance();

Powered by Google App Engine
This is Rietveld 408576698