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

Unified Diff: content/public/test/test_download_request_handler.cc

Issue 2076163002: Migrate SequencedTaskRunnerHandle calls to TaskRunnerHandle calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mix_c_Ab_1_scheduler_support_parallelTRH
Patch Set: Created 4 years, 6 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 | « content/browser/download/url_downloader.cc ('k') | tools/gn/bootstrap/bootstrap.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/test_download_request_handler.cc
diff --git a/content/public/test/test_download_request_handler.cc b/content/public/test/test_download_request_handler.cc
index f4d32181373f29c6b16a58446573a640b2a2d327..22a71706539ce368f452bb1fdf2e773bc18e572c 100644
--- a/content/public/test/test_download_request_handler.cc
+++ b/content/public/test/test_download_request_handler.cc
@@ -18,7 +18,7 @@
#include "base/sequenced_task_runner.h"
#include "base/single_thread_task_runner.h"
#include "base/strings/stringprintf.h"
-#include "base/threading/sequenced_task_runner_handle.h"
+#include "base/threading/task_runner_handle.h"
#include "base/threading/thread_task_runner_handle.h"
#include "content/public/browser/browser_thread.h"
#include "net/base/io_buffer.h"
@@ -623,12 +623,12 @@ TestDownloadRequestHandler::TestDownloadRequestHandler()
TestDownloadRequestHandler::TestDownloadRequestHandler(const GURL& url)
: url_(url) {
- DCHECK(base::SequencedTaskRunnerHandle::IsSet());
+ DCHECK(base::TaskRunnerHandle::HasSequencedTaskScope());
base::RunLoop run_loop;
BrowserThread::PostTaskAndReplyWithResult(
BrowserThread::IO, FROM_HERE,
base::Bind(&Interceptor::Register, url_,
- base::SequencedTaskRunnerHandle::Get()),
+ base::TaskRunnerHandle::GetSequenced()),
base::Bind(&StoreValueAndInvokeClosure<base::WeakPtr<Interceptor>>,
run_loop.QuitClosure(), &interceptor_));
run_loop.Run();
« no previous file with comments | « content/browser/download/url_downloader.cc ('k') | tools/gn/bootstrap/bootstrap.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698