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

Unified Diff: components/cronet/ios/cronet_environment.mm

Issue 2729523006: Remove the |max_threads| argument from CreateAndSetSimpleTaskScheduler(). (Closed)
Patch Set: fix build error 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
« no previous file with comments | « chrome/service/service_process.cc ('k') | content/child/child_process.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cronet/ios/cronet_environment.mm
diff --git a/components/cronet/ios/cronet_environment.mm b/components/cronet/ios/cronet_environment.mm
index 40fb6ac9bedadccaa129f0b50bd2ecff31a0567d..e886659100504e8358719afbb5a616d6e7fdd65d 100644
--- a/components/cronet/ios/cronet_environment.mm
+++ b/components/cronet/ios/cronet_environment.mm
@@ -22,7 +22,6 @@
#include "base/path_service.h"
#include "base/single_thread_task_runner.h"
#include "base/synchronization/waitable_event.h"
-#include "base/sys_info.h"
#include "base/task_scheduler/task_scheduler.h"
#include "base/threading/worker_pool.h"
#include "components/cronet/histogram_manager.h"
@@ -119,8 +118,7 @@ void CronetEnvironment::Initialize() {
if (!g_at_exit_)
g_at_exit_ = new base::AtExitManager;
- base::TaskScheduler::CreateAndSetSimpleTaskScheduler(
- base::SysInfo::NumberOfProcessors());
+ base::TaskScheduler::CreateAndSetSimpleTaskScheduler("CronetIos");
url::Initialize();
base::CommandLine::Init(0, nullptr);
« no previous file with comments | « chrome/service/service_process.cc ('k') | content/child/child_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698