0

Migrate "base::TimeDelta::FromX" to "base:X".

All changes were done automatically with git grep, sed, xargs, etc.

No-Presubmit: true
No-Try: true
Bug: 1243777
Change-Id: I7cc197e9027f7837cd36afc67a209079f85ec364
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3198824
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Owners-Override: Peter Kasting <pkasting@chromium.org>
Reviewed-by: Peter Boström <pbos@chromium.org>
Cr-Commit-Position: refs/heads/main@{#927512}
This commit is contained in:
Peter Kasting
2021-10-02 03:06:35 +00:00
committed by Chromium LUCI CQ
parent 1931425875
commit e5a38eddbd
5638 changed files with 27000 additions and 33422 deletions
android_webview
ash
accelerators
accelerometer
accessibility
ambient
app_list
assistant
capture_mode
clipboard
components
constants
controls
display
drag_drop
fast_ink
frame
frame_throttler
highlighter
hud_display
ime
in_session_auth
keyboard
lock_screen_action
login
media
metrics
multi_user
policy
projector
public
quick_pair
rotator
services
session
shelf
shortcut_viewer
system
accessibility
bluetooth
holding_space
machine_learning
media
message_center
model
nearby_share
network
night_light
overview
palette
phonehub
power
privacy_screen
session
status_area_widget.cc
time
toast
tray
unified
touch
utility
wallpaper
webui
wm
desks
gestures
immersive_fullscreen_controller_unittest.cclock_state_controller.cc
overview
pip
resize_shadow.ccresize_shadow_and_cursor_unittest.ccsession_state_animator.cc
splitview
tablet_mode
toplevel_window_event_handler_unittest.ccvideo_detector.ccwindow_animations.ccwindow_animations_unittest.cc
window_cycle
window_dimmer.ccwindow_positioner.cc
window_restore
window_state.ccwindow_state.hwindow_state_unittest.cc
workspace
workspace_controller.cc
base
cc
animation
base
benchmarks
debug
input
layers
metrics
paint
raster
resources
scheduler
test
tiles
trees
chrome
app_shim
browser
accessibility
after_startup_task_utils.cc
android
apps
ash
accessibility
account_manager
android_sms
app_mode
app_restore
arc
attestation
authpolicy
bluetooth
borealis
camera_mic
cert_provisioning
certificate_provider
child_accounts
crosapi
crostini
customization
device_name
drive
file_system_provider
first_run
guest_os
hats
input_method
kerberos
lock_screen_apps
login
app_mode
challenge_response_auth_keys_loader.ccchrome_restart_request.cc
demo_mode
easy_unlock
enrollment
enterprise_user_session_metrics.ccenterprise_user_session_metrics_unittest.ccerror_screen_browsertest.ccerror_screens_histogram_helper.ccerror_screens_histogram_helper_unittest.ccexisting_user_controller.ccexisting_user_controller_browsertest.ccexisting_user_controller_forced_online_auth_unittest.cc
lock
login_constants.honboarding_user_activity_counter.cconboarding_user_activity_counter_unittest.cc
quick_unlock
reset_browsertest.cc
saml
screens
security_token_session_controller.cc
session
signin
test
ui
user_online_signin_notifier_unittest.cc
users
version_updater
wizard_controller.ccwizard_controller_browsertest.cc
mobile
nearby
net
night_light
notifications
policy
active_directory
core
dlp
enrollment
handlers
invalidation
off_hours
remote_commands
reporting
rsu
scheduled_task_handler
server_backed_state
status_collector
uploading
power
printing
secure_channel
settings
smb_client
system
tether
web_applications
wilco_dtc_supportd
autocomplete
autofill
availability
background
background_sync
badging
bitmap_fetcher
bookmarks
browser_process_impl.ccbrowser_process_platform_part_chromeos.cc
browser_switcher
browsing_data
captive_portal
cart
chrome_browser_main.ccchrome_browser_main_android.ccchrome_browser_main_win.ccchrome_content_browser_client.ccchrome_content_browser_client_browsertest.ccchrome_web_platform_security_metrics_browsertest.cc
chromeos
client_hints
commerce
component_updater
content_settings
custom_handlers
data_reduction_proxy
data_saver
dbus_memory_pressure_evaluator_linux.cc
device_api
device_reauth
devtools
dom_distiller
download
endpoint_fetcher
engagement
enterprise
error_reporting
extensions
activity_log
api
api_binding_perf_browsertest.ccextension_browsertest_browsertest.ccextension_garbage_collector.ccextension_message_bubble_controller_unittest.ccextension_service.cc
forced_extensions
test_extension_prefs.cc
updater
webstore_installer.ccwindow_open_apitest.cczipfile_installer_unittest.cc
favicon
federated_learning
feedback
system_logs
file_system_access
google
history_clusters
idle
importer
interest_group
internal_auth_unittest.ccintranet_redirect_detector.cc
lacros
lifetime
lite_video
local_discovery
lookalikes
mac
media
android
cast_mirroring_performance_browsertest.cccdm_document_service_impl_test.cc
history
media_engagement_browsertest.ccmedia_engagement_contents_observer.ccmedia_engagement_contents_observer_unittest.ccmedia_engagement_score_unittest.ccmedia_engagement_service_unittest.ccmedia_engagement_session_unittest.ccoffscreen_tab.cc
router
webrtc
media_galleries
memory
metrics
navigation_predictor
nearby_sharing
net
new_tab_page
no_best_effort_tasks_browsertest.cc
notifications
offline_pages
optimization_guide
page_load_metrics
paint_preview
password_manager
performance_manager
performance_monitor
permissions
policy
portal
predictors
prefetch
printing
privacy_sandbox
process_singleton_posix.ccprocess_singleton_win_unittest.cc
profile_resetter
profiles
profiling_host
push_messaging
reading_list
renderer_context_menu
renderer_host
reputation
resource_coordinator
safe_browsing
search
segmentation_platform
service_process
sessions
share
sharing
shell_integration_win.cc
signin
site_isolation
speech
ssl
storage
storage_access_api
subresource_filter
subresource_redirect
supervised_user
sync
sync_file_system
task_manager
themes
thumbnail
touch_to_fill
tracing
translate
ui
android
app_list
apps
ash
autofill
blocked_content
bookmarks
browser.ccbrowser_focus_uitest.cc
cocoa
exclusive_access
global_media_controls
hats
hung_plugin_tab_helper.cc
media_router
omnibox
passwords
profile_picker.ccprofile_picker_unittest.ccrecently_audible_helper.hrecently_audible_helper_unittest.cc
search
signin_reauth_view_controller_browsertest.cc
startup
tabs
task_manager
thumbnails
toolbar
user_education
views
accessibility
apps
autofill
bookmarks
bubble
content_test_utils.cccritical_notification_bubble_view.cc
crostini
desktop_capture
download
exclusive_access_bubble_views.cc
extensions
eye_dropper
flying_indicator.cc
frame
fullscreen_control
hats
keyboard_access_browsertest.cc
location_bar
media_router
omnibox
overlay
page_action
page_info
passwords
payments
profiles
read_later
relaunch_notification
send_tab_to_self
status_bubble_views.ccstatus_bubble_views_browsertest.cc
tab_sharing
tabs
toolbar
user_education
web_apps
webauthn
web_applications
webauthn
webui
autofill_and_password_manager_internals
certificate_provisioning_ui_handler.cccertificate_provisioning_ui_handler_unittest.cc
chromeos
constrained_web_dialog_ui_browsertest.cc
download_shelf
downloads
history_clusters
identity_internals_ui_browsertest.cc
internals
interstitials
management
metrics_handler.cc
net_internals
new_tab_page
read_later
realbox
settings
signin
tab_search
tab_strip
webui_load_timer.cc
upgrade_detector
video_tutorials
visibility_timer_tab_helper_unittest.cc
vr
web_applications
webshare
win
chrome_cleaner
chrome_elf
common
credential_provider
installer
renderer
service
services
test
updater
utility
safe_browsing
chromecast
base
browser
cast_core
crash
device
external_mojo
external_service_support
graphics
media
audio
base
cma
common
service
metrics
net
renderer
ui
chromeos
assistant
test_support
attestation
components
crosapi
dbus
disks
geolocation
memory
metrics
network
policy
printing
services
assistant
cellular_setup
cros_healthd
device_sync
libassistant
multidevice_setup
network_config
secure_channel
tts
system
timezone
tpm
ui
cloud_print/virtual_driver/win/port_monitor
codelabs/cpp101
components
accuracy_tips
app_restore
arc
assist_ranker
autofill
content
core
browser
address_normalizer_impl.ccautocomplete_history_manager_unittest.ccautofill_ablation_study.ccautofill_ablation_study_unittest.ccautofill_download_manager.ccautofill_download_manager_unittest.ccautofill_manager.ccautofill_metrics.ccautofill_metrics_unittest.ccautofill_profile_import_process_unittest.ccautofill_profile_save_strike_database.ccautofill_profile_save_strike_database_unittest.ccautofill_profile_update_strike_database.ccautofill_profile_validator.ccautofill_suggestion_generator_unittest.ccautofill_test_utils.ccbrowser_autofill_manager.ccbrowser_autofill_manager_unittest.cc
data_model
geo
metrics
payments
personal_data_manager_unittest.ccstrike_database_integrator_base.ccstrike_database_integrator_test_strike_database.hstrike_database_integrator_test_strike_database_unittest.cctest_autofill_profile_validator_delayed.cctest_event_waiter.h
ui
webdata
common
ios
autofill_assistant
background_sync
blocked_content
blocklist
bookmarks
breadcrumbs
browser_sync
browsing_data
captive_portal
cast_certificate
cast_channel
cast_streaming
certificate_transparency
client_hints
component_updater
content_capture
content_settings
crash
cronet
data_reduction_proxy
data_use_measurement
desks_storage
device_event_log
discardable_memory
dom_distiller
domain_reliability
download
drive
embedder_support
enterprise
error_page
exo
favicon
feature_engagement
federated_learning
features
feed
feedback
fullscreen_control
gcm_driver
guest_os
gwp_asan
heap_profiling
heavy_ad_intervention
history
history_clusters
image_fetcher
invalidation
javascript_dialogs
language
leveldb_proto
live_caption
media_message_center
media_router
memory_pressure
metal_util
metrics
mirroring
nacl
navigation_interception
net_log
network_hints
network_session_configurator
network_time
no_state_prefetch
ntp_snippets
ntp_tiles
offline_items_collection
offline_pages
omnibox
open_from_clipboard
openscreen_platform
optimization_guide
page_image_annotation
page_info
page_load_metrics
paint_preview
password_manager
payments
performance_manager
permissions
policy
power_scheduler
prefs
query_tiles
quirks
reading_list
remote_cocoa
reporting
rlz
safe_browsing
safe_search_api
safety_check
scheduling_metrics
schema_org
common
search
search_engines
search_provider_logos
security_interstitials
security_state
segmentation_platform
send_tab_to_self
services
sessions
shared_highlighting
signin
site_engagement
site_isolation
soda
spellcheck
ssl_errors
storage_monitor
subresource_filter
subresource_redirect
sync
sync_bookmarks
sync_device_info
sync_sessions
system_media_controls
translate
ui_devtools
ukm
update_client
user_manager
variations
viz
common
demo
host
service
test
web_cache
web_resource
webapps
webrtc_logging
wifi
content
app
browser
accessibility
aggregation_service
android
appcache
attribution_reporting
audio
back_forward_cache_browsertest.cc
background_sync
blob_storage
bluetooth
browser_process_io_thread.cc
browsing_data
cache_storage
child_process_launcher.ccchild_process_security_policy_impl.ccchild_process_security_policy_impl.h
client_hints
code_cache
compute_pressure
content_index
data_decoder_browsertest.cc
device_sensors
devtools
download
gpu
host_zoom_map_impl_unittest.cc
idle
indexed_db
interest_group
loader
media
memory
metrics
net
net_info_browsertest.ccnetwork_service_browsertest.cc
notifications
portal
prerender
push_messaging
quota
renderer_host
back_forward_cache_impl.ccback_forward_cache_metrics.ccback_forward_cache_metrics_browsertest.ccback_forward_cache_metrics_unittest.ccclipboard_host_impl.ccclipboard_host_impl_unittest.cccompositor_dependencies_android.cccompositor_impl_android_browsertest.ccdebug_urls.ccdwrite_font_lookup_table_builder_win.ccdwrite_font_lookup_table_builder_win_unittest.cc
input
media
navigation_controller_impl.ccnavigation_controller_impl_browsertest.ccnavigation_controller_impl_unittest.ccnavigation_request.ccoverscroll_configuration.ccoverscroll_controller.ccoverscroll_controller_unittest.ccpage_lifecycle_state_manager.ccplugin_registry_impl.ccrecently_destroyed_hosts.ccrecently_destroyed_hosts.hrecently_destroyed_hosts_unittest.ccrender_frame_host_impl.ccrender_frame_host_impl_browsertest.ccrender_frame_host_manager_browsertest.ccrender_process_host_browsertest.ccrender_process_host_impl.ccrender_view_host_impl.hrender_widget_host_browsertest.ccrender_widget_host_impl.ccrender_widget_host_unittest.ccrender_widget_host_view_android.ccrender_widget_host_view_aura.ccrender_widget_host_view_aura_browsertest.ccrender_widget_host_view_aura_unittest.ccrender_widget_host_view_browsertest.ccrender_widget_host_view_child_frame.ccrender_widget_host_view_mac_unittest.mmrender_widget_targeter.cctext_input_client_mac.htext_input_client_mac_unittest.mm
scheduler
service_process_host_browsertest.cc
service_worker
site_per_process_browsertest.ccsite_per_process_scroll_browsertest.ccsite_per_process_unload_browsertest.ccstarscan_load_observer.ccstartup_task_runner_unittest.ccstorage_partition_impl.ccstorage_partition_impl_unittest.ccstorage_service_restart_browsertest.ccstorage_service_sandbox_browsertest.cc
tracing
video_capture_service.cc
web_contents
web_database
web_package
webauth
webrtc
webui
xr
child
common
ppapi_plugin
public
renderer
services
shell
test
web_test
dbus
device
docs
extensions
fuchsia
gin
gpu
headless
ios
chrome
app
browser
app_launcher
autofill
browser_state
browsing_data
crash_report
external_files
infobars
install_time_util_unittest.mmios_chrome_main_parts.mmios_thread_profiler.cc
link_to_text
metrics
notification_promo.ccnotification_promo_unittest.cc
ntp
omaha
optimization_guide
overscroll_actions
passwords
policy
prerender
reading_list
safe_browsing
sessions
share_extension
snapshots
ssl
translate
ui
web
test
net
public
provider
testing
web
ipc
jingle
media
audio
base
capabilities
capture
cast
cdm
ffmpeg
filters
formats
fuchsia
gpu
midi
mojo
muxers
remoting
renderers
test
video
webrtc
mojo
net
android
base
cert
cert_net
cookies
der
disk_cache
dns
extras
http
log
network_error_logging
nqe
proxy_resolution
quic
reporting
socket
spdy
ssl
test
tools
stress_cache
url_request
websockets
pdf
ppapi
printing/backend
remoting
base
client
codec
host
audio_capturer_win.ccbackoff_timer_unittest.ccbasic_desktop_environment.cc
chromeos
clipboard_mac.mmclipboard_win.ccconfig_file_watcher.cccontinue_window.ccdaemon_process.ccdaemon_process_unittest.ccdesktop_session_agent.ccdesktop_session_agent_unittest.ccdesktop_session_win.ccdisconnect_window_win.ccftl_signaling_connector.ccheartbeat_sender.ccheartbeat_sender_unittest.ccinput_injector_mac.ccinput_injector_x11.cc
it2me
keyboard_layout_monitor_chromeos.cckeyboard_layout_monitor_win.cc
linux
mac
mojo_ipc
mouse_shape_pump.ccprocess_stats_sender_unittest.cc
remote_open_url
remoting_me2me_host.ccremoting_register_support_host_request.ccremoting_register_support_host_request_unittest.ccresizing_host_observer.ccresizing_host_observer_unittest.cc
security_key
setup
token_validator_base_unittest.cc
win
xmpp_register_support_host_request.ccxmpp_register_support_host_request_unittest.cczombie_host_detector.hzombie_host_detector_unittest.cc
ios
protocol
signaling
test
rlz/lib
sandbox
services
audio
cert_verifier
data_decoder
device
image_annotation
media_session
network
cookie_manager_unittest.cccookie_settings_unittest.cc
cors
host_resolver_unittest.cchttp_cache_data_counter_unittest.ccmdns_responder.ccmdns_responder.hmdns_responder_unittest.ccnet_log_proxy_sink_unittest.ccnetwork_context_unittest.ccnetwork_quality_estimator_manager_unittest.ccnetwork_service.ccnetwork_service_proxy_delegate_unittest.cc
p2p
public
resource_scheduler
sct_auditing
session_cleanup_cookie_store_unittest.cc
throttling
trust_tokens
upload_progress_tracker.ccupload_progress_tracker_unittest.ccurl_loader_factory.ccurl_loader_unittest.ccwebsocket_throttler.ccwebsocket_throttler_unittest.cc
proxy_resolver
resource_coordinator
service_manager
tests
tracing
video_capture
viz
sql
storage/browser
testing/perf
third_party
blink
common
public
renderer
bindings
controller
core
animation
content_capture
css
document_transition
dom
editing
exported
fileapi
frame
html
input
inspector
intersection_observer
layout
loader
mobile_metrics
origin_trials
page
paint
scheduler_integration_tests
scroll
svg
testing
timing
web_test
workers
xmlhttprequest
modules
ad_auction
animationworklet
background_fetch
breakout_box
canvas
content_index
credentialmanager
device_orientation
document_metadata
eventsource
filesystem
gamepad
geolocation
handwriting
idle
media
media_controls
mediacapturefromelement
mediarecorder
mediasession
mediasource
mediastream
notifications
payments
peerconnection
scheduler
sensor
service_worker
speech
vibration
video_rvfc
webaudio
webcodecs
webgl
webmidi
webrtc
websockets
webtransport
platform
animation
audio
bindings
blob
fonts
graphics
image-decoders
instrumentation
loader
media
mediastream
network
peerconnection
scheduler
testing
timer_test.cc
video_capture
widget
wtf
leveldatabase
libaddressinput
webrtc_overrides
zlib
tools
android
io_benchmark
ipc_fuzzer
message_replay
mac
ui
accelerated_widget_mac
android
aura
base
compositor
compositor_extra
display
events
gfx
gl
gtk
latency
lottie
message_center
native_theme
ozone
platform_window
shell_dialogs
snapshot
touch_selection
views
wm
weblayer

@ -60,8 +60,7 @@ URLChecker::URLChecker(std::unique_ptr<URLCheckerClient> async_checker,
size_t cache_size)
: async_checker_(std::move(async_checker)),
cache_(cache_size),
cache_timeout_(
base::TimeDelta::FromSeconds(kDefaultCacheTimeoutSeconds)) {}
cache_timeout_(base::Seconds(kDefaultCacheTimeoutSeconds)) {}
URLChecker::~URLChecker() = default;

@ -152,7 +152,7 @@ TEST_F(SafeSearchURLCheckerTest, CoalesceRequestsToSameURL) {
TEST_F(SafeSearchURLCheckerTest, CacheTimeout) {
GURL url(GetNewURL());
checker_->SetCacheTimeoutForTesting(base::TimeDelta::FromSeconds(0));
checker_->SetCacheTimeoutForTesting(base::Seconds(0));
EXPECT_CALL(*this, OnCheckDone(url, Classification::SAFE, false));
ASSERT_FALSE(SendResponse(url, Classification::SAFE, false));