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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_service.cc

Issue 2833373004: Use TaskScheduler instead of blocking pool in safe_browsing_service.cc. (Closed)
Patch Set: Created 3 years, 8 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: chrome/browser/safe_browsing/safe_browsing_service.cc
diff --git a/chrome/browser/safe_browsing/safe_browsing_service.cc b/chrome/browser/safe_browsing/safe_browsing_service.cc
index 51461b696c212a923c259fa24c4264ee354e793d..f72d6eea0200f77c31d34aaffc36a8ea68c0770a 100644
--- a/chrome/browser/safe_browsing/safe_browsing_service.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_service.cc
@@ -18,7 +18,7 @@
#include "base/metrics/histogram_macros.h"
#include "base/path_service.h"
#include "base/strings/string_util.h"
-#include "base/threading/sequenced_worker_pool.h"
+#include "base/task_scheduler/post_task.h"
#include "base/threading/thread.h"
#include "base/threading/thread_restrictions.h"
#include "base/trace_event/trace_event.h"
@@ -195,9 +195,9 @@ SafeBrowsingURLRequestContextGetter::GetURLRequestContext() {
// Set up the ChannelIDService
scoped_refptr<net::SQLiteChannelIDStore> channel_id_db =
new net::SQLiteChannelIDStore(
- ChannelIDFilePath(),
- BrowserThread::GetBlockingPool()->GetSequencedTaskRunner(
- base::SequencedWorkerPool::GetSequenceToken()));
+ ChannelIDFilePath(), base::CreateSequencedTaskRunnerWithTraits(
+ base::TaskTraits().MayBlock().WithPriority(
+ base::TaskPriority::BACKGROUND)));
channel_id_service_.reset(new net::ChannelIDService(
new net::DefaultChannelIDStore(channel_id_db.get())));
safe_browsing_request_context_->set_channel_id_service(
« 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