Commit ad43ae05 authored by fdoray's avatar fdoray Committed by Commit bot

Use TaskScheduler instead of SequencedWorkerPool in shell_url_request_context_getter.mm.

SequencedWorkerPool is being deprecated in favor of TaskScheduler.

BUG=667892
R=droger@chromium.org

Review-Url: https://codereview.chromium.org/2876983003
Cr-Commit-Position: refs/heads/master@{#473470}
parent 2cae1f83
...@@ -12,10 +12,9 @@ ...@@ -12,10 +12,9 @@
#include "base/memory/ptr_util.h" #include "base/memory/ptr_util.h"
#include "base/memory/ref_counted.h" #include "base/memory/ref_counted.h"
#include "base/path_service.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/net/cookies/cookie_store_ios_persistent.h"
#import "ios/web/public/web_client.h" #import "ios/web/public/web_client.h"
#include "ios/web/public/web_thread.h"
#include "ios/web/shell/shell_network_delegate.h" #include "ios/web/shell/shell_network_delegate.h"
#include "net/base/cache_type.h" #include "net/base/cache_type.h"
#include "net/cert/cert_verifier.h" #include "net/cert/cert_verifier.h"
...@@ -81,8 +80,8 @@ net::URLRequestContext* ShellURLRequestContextGetter::GetURLRequestContext() { ...@@ -81,8 +80,8 @@ net::URLRequestContext* ShellURLRequestContextGetter::GetURLRequestContext() {
scoped_refptr<net::CookieMonster::PersistentCookieStore> persistent_store = scoped_refptr<net::CookieMonster::PersistentCookieStore> persistent_store =
new net::SQLitePersistentCookieStore( new net::SQLitePersistentCookieStore(
cookie_path, network_task_runner_, cookie_path, network_task_runner_,
web::WebThread::GetBlockingPool()->GetSequencedTaskRunner( base::CreateSequencedTaskRunnerWithTraits(
web::WebThread::GetBlockingPool()->GetSequenceToken()), {base::MayBlock(), base::TaskPriority::BACKGROUND}),
true, nullptr); true, nullptr);
std::unique_ptr<net::CookieStoreIOS> cookie_store( std::unique_ptr<net::CookieStoreIOS> cookie_store(
new net::CookieStoreIOSPersistent(persistent_store.get())); new net::CookieStoreIOSPersistent(persistent_store.get()));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment