0

task posting v3: moving away from SequencedTaskRunnerHandle

To continue the migration away from TaskRunnerHandles, the codebase
was refactored using the following scripts:
shell script:
https://paste.googleplex.com/4673967729147904
python:
https://paste.googleplex.com/5302682490241024

This will do a few sed-like modifications, changing calls to methods of
SequencedTaskRunnerHandle to calls to methods of
SequencedTaskRunner::CurrentDefaultHandle, and swapping includes.

Bug: 1026641
AX-Relnotes: n/a.
Change-Id: I49e50a2bd1e78b00e7c067219fff96d2e0bc0b46
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3983373
Commit-Queue: Gabriel Charette <gab@chromium.org>
Owners-Override: Gabriel Charette <gab@chromium.org>
Reviewed-by: Gabriel Charette <gab@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1071032}
This commit is contained in:
Sean Maher
2022-11-14 15:53:25 +00:00
committed by Gabriel Charette
parent 63c6d362fe
commit 52fa5a7f26
815 changed files with 2513 additions and 2249 deletions
android_webview/nonembedded/net
ash
cc/tiles
chrome/browser
ash
fusebox
web_applications
web_applications
chromecast
chromeos
ash
components
dbus
lacros
metrics
printing
process_proxy
services
machine_learning
system
codelabs/cpp101
components
account_manager_core
arc
intent_helper
autofill
background_fetch
browser_sync
browsing_topics
cast
cast_streaming
commerce
component_updater
cronet
download
embedder_support
enterprise
browser
exo
feed
feedback
history
image_fetcher
language
leveldb_proto
memory_pressure
metrics
mirroring
named_mojo_ipc_server
net_log
network_hints
omnibox
open_from_clipboard
optimization_guide
paint_preview
password_manager
pdf
performance_manager
permissions
policy
prefs
reporting
rlz
safe_browsing
safe_search_api
segmentation_platform
services
signin
public
storage_monitor
subresource_filter
sync
sync_bookmarks
sync_sessions
update_client
value_store
variations
viz
webapps
browser
webdata
content
browser
attribution_reporting
background_fetch
browser_context_impl.ccbrowser_main_loop.cc
buckets
cache_storage
child_process_launcher_helper.cc
code_cache
data_decoder_browsertest.cc
devtools
direct_sockets
download
file_system_access
indexed_db
interest_group
loader
media
native_io
network_context_client_base_impl.cc
payments
preloading
quota
renderer_host
service_worker
storage_service_restart_browsertest.ccstorage_service_sandbox_browsertest.cc
tracing
web_package
webauth
webid
worker_host
child
public
services
test
web_test
crypto
dbus
device
extensions/browser
fuchsia_web/webengine/browser
google_apis/gcm/engine
gpu/command_buffer/service
headless/lib/browser
ipc
media
audio
base
capture
cast
filters
fuchsia
gpu
learning
mojo
video
mojo
net
pdf
remoting
sandbox/policy/win
services
audio
cert_verifier
data_decoder
device
image_annotation
metrics
network
proxy_resolver_win
resource_coordinator
memory_instrumentation
public
cpp
memory_instrumentation
service_manager
shape_detection
tracing
viz
storage/browser
ui
weblayer/browser

@ -7,7 +7,7 @@
#include <utility>
#include "base/callback.h"
#include "base/threading/sequenced_task_runner_handle.h"
#include "base/task/sequenced_task_runner.h"
namespace safe_search_api {
@ -28,7 +28,7 @@ void FakeURLCheckerClient::RunCallback(ClientClassification classification) {
void FakeURLCheckerClient::RunCallbackAsync(
ClientClassification classification) {
base::SequencedTaskRunnerHandle::Get()->PostTask(
base::SequencedTaskRunner::GetCurrentDefault()->PostTask(
FROM_HERE, base::BindOnce(std::move(callback_), url_, classification));
}