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

Unified Diff: ios/chrome/browser/net/cookie_util.mm

Issue 2878943002: Use TaskScheduler instead of SequencedWorkerPool in cookie_util.mm. (Closed)
Patch Set: Created 3 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/net/cookie_util.mm
diff --git a/ios/chrome/browser/net/cookie_util.mm b/ios/chrome/browser/net/cookie_util.mm
index cadb9bc589388c0e34cde92437192f9e1bcf312f..48a2187775c100e41acfce2cbb34e57af90aa622 100644
--- a/ios/chrome/browser/net/cookie_util.mm
+++ b/ios/chrome/browser/net/cookie_util.mm
@@ -12,7 +12,7 @@
#import "base/mac/bind_objc_block.h"
#include "base/memory/ptr_util.h"
#include "base/memory/ref_counted.h"
-#include "base/threading/sequenced_worker_pool.h"
+#include "base/task_scheduler/post_task.h"
#include "ios/chrome/browser/browser_state/chrome_browser_state.h"
#include "ios/net/cookies/cookie_store_ios_persistent.h"
#include "ios/web/public/web_thread.h"
@@ -44,8 +44,8 @@ scoped_refptr<net::SQLitePersistentCookieStore> CreatePersistentCookieStore(
return scoped_refptr<net::SQLitePersistentCookieStore>(
new net::SQLitePersistentCookieStore(
path, web::WebThread::GetTaskRunnerForThread(web::WebThread::IO),
- web::WebThread::GetBlockingPool()->GetSequencedTaskRunner(
- web::WebThread::GetBlockingPool()->GetSequenceToken()),
+ base::CreateSequencedTaskRunnerWithTraits(
+ {base::MayBlock(), base::TaskPriority::BACKGROUND}),
restore_old_session_cookies, crypto_delegate));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698