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

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

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: components/cronet/ios/cronet_environment.mm
diff --git a/components/cronet/ios/cronet_environment.mm b/components/cronet/ios/cronet_environment.mm
index 40fb6ac9bedadccaa129f0b50bd2ecff31a0567d..3395171039c05b990b813736cd5501bc4f4ea5f7 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("Cronet");
robliao 2017/03/13 23:56:05 CronetIos might be more specific. Remoting in a l
fdoray 2017/03/14 15:08:22 Done.
url::Initialize();
base::CommandLine::Init(0, nullptr);

Powered by Google App Engine
This is Rietveld 408576698