Index: ios/web/shell/shell_url_request_context_getter.mm |
diff --git a/ios/web/shell/shell_url_request_context_getter.mm b/ios/web/shell/shell_url_request_context_getter.mm |
index 1848e874eb1d8cfaa3db8d17da911ee81064c941..4805d544e1212b3bf6f2e60b126e106e3c0893d3 100644 |
--- a/ios/web/shell/shell_url_request_context_getter.mm |
+++ b/ios/web/shell/shell_url_request_context_getter.mm |
@@ -12,10 +12,9 @@ |
#include "base/memory/ptr_util.h" |
#include "base/memory/ref_counted.h" |
#include "base/path_service.h" |
-#include "base/threading/sequenced_worker_pool.h" |
+#include "base/task_scheduler/post_task.h" |
#import "ios/net/cookies/cookie_store_ios_persistent.h" |
#import "ios/web/public/web_client.h" |
-#include "ios/web/public/web_thread.h" |
#include "ios/web/shell/shell_network_delegate.h" |
#include "net/base/cache_type.h" |
#include "net/cert/cert_verifier.h" |
@@ -81,8 +80,8 @@ net::URLRequestContext* ShellURLRequestContextGetter::GetURLRequestContext() { |
scoped_refptr<net::CookieMonster::PersistentCookieStore> persistent_store = |
new net::SQLitePersistentCookieStore( |
cookie_path, network_task_runner_, |
- web::WebThread::GetBlockingPool()->GetSequencedTaskRunner( |
- web::WebThread::GetBlockingPool()->GetSequenceToken()), |
+ base::CreateSequencedTaskRunnerWithTraits( |
+ {base::MayBlock(), base::TaskPriority::BACKGROUND}), |
true, nullptr); |
std::unique_ptr<net::CookieStoreIOS> cookie_store( |
new net::CookieStoreIOSPersistent(persistent_store.get())); |