Rename {absl => std}::optional in //components/
#cleanup Automated patch. This is a no-op. Please avoid, to assign unrelated bugs to this, as much as possible. Context: https://groups.google.com/a/chromium.org/g/cxx/c/nBD_1LaanTc/m/ghh-ZZhWAwAJ?utm_medium=email As of https://crrev.com/1204351, absl::optional is now a type alias for std::optional. We should migrate toward it. Script: ``` function replace { echo "Replacing $1 by $2" git grep -l "$1" \ | cut -f1 -d: \ | grep \ -e "^components/" \ | grep \ -e "\.h" \ -e "\.cc" \ -e "\.mm" \ | grep -v \ -e "components/cast_streaming/browser/public/receiver_config.*" \ -e "components/power_metrics/*" \ -e "components/zucchini/patch_reader.*" \ | sort \ | uniq \ | xargs sed -i "s/$1/$2/g" } replace "absl::make_optional" "std::make_optional" replace "absl::optional" "std::optional" replace "absl::nullopt" "std::nullopt" replace "absl::in_place" "std::in_place" replace "absl::in_place_t" "std::in_place_t" replace "\"third_party\/abseil-cpp\/absl\/types\/optional.h\"" "<optional>" echo "Formatting:" echo "IncludeBlocks: Regroup" >> ".clang-format" echo "IncludeIsMainRegex: \"(_(android|apple|chromeos|freebsd|fuchsia|fuzzer|ios|linux|mac|nacl|openbsd|posix|stubs?|win))?(_(unit|browser|perf)?tests?)?$\"" >> ".clang-format" git cl format git restore ".clang-format" git cl format ``` Bug: chromium:1500249 Change-Id: I34b45aba082a627d94fd9d3f9f994a60c64b40b1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5200092 Auto-Submit: Arthur Sonzogni <arthursonzogni@chromium.org> Reviewed-by: danakj <danakj@chromium.org> Commit-Queue: danakj <danakj@chromium.org> Owners-Override: danakj <danakj@chromium.org> Cr-Commit-Position: refs/heads/main@{#1252820}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
f903b2778c
commit
c571efbef3
components
access_code_cast
account_id
account_manager_core
account_manager_facade.haccount_manager_facade_impl.ccaccount_manager_facade_impl_unittest.ccaccount_manager_util.ccaccount_manager_util.haccount_upsertion_result.ccaccount_upsertion_result.h
chromeos
aggregation_service
allocation_recorder
crash_handler
android_autofill
browser
apdu
arc
intent_helper
attribution_reporting
aggregatable_dedup_key.ccaggregatable_dedup_key.haggregatable_dedup_key_unittest.ccaggregatable_trigger_config.ccaggregatable_trigger_config.haggregatable_trigger_config_unittest.ccaggregatable_trigger_data.ccaggregatable_trigger_data.haggregatable_values.ccaggregatable_values.haggregatable_values_unittest.ccaggregation_keys.ccaggregation_keys.haggregation_keys_unittest.ccdestination_set.ccdestination_set.hevent_level_epsilon.ccevent_report_windows.ccevent_report_windows.hevent_report_windows_unittest.ccevent_trigger_data.ccevent_trigger_data.hevent_trigger_data_unittest.ccfilters.ccfilters.hfilters_unittest.ccmax_event_level_reports.ccos_registration.ccparsing_utils.ccparsing_utils.hparsing_utils_unittest.ccregistration_mojom_traits.ccregistration_mojom_traits.hsource_registration.ccsource_registration.hsource_registration_fuzzer.ccsource_registration_unittest.ccsuitable_origin.ccsuitable_origin.hsuitable_origin_unittest.cctest_utils.cctest_utils.htrigger_config.cctrigger_config.htrigger_registration.cctrigger_registration.htrigger_registration_fuzzer.cctrigger_registration_unittest.cc
autofill
core
browser
ios
background_sync
background_task_scheduler
blocked_content
popup_blocker_tab_helper.ccpopup_navigation_delegate.hpopup_opener_tab_helper.hpopup_tracker.hsafe_browsing_triggered_popup_blocker.ccsafe_browsing_triggered_popup_blocker.h
test
blocklist
opt_out_blocklist
bookmarks
browser
bookmark_codec.ccbookmark_model.ccbookmark_model.hbookmark_model_unittest.ccbookmark_storage.ccbookmark_utils.cctitled_url_index.cctitled_url_index.h
managed
breadcrumbs
core
browser_sync
browser_ui
site_settings
android
browsing_data
content
browsing_data_model.ccbrowsing_data_model.hbrowsing_data_model_unittest.cccookie_helper_unittest.ccfile_system_helper_unittest.cclocal_storage_helper_browsertest.ccmock_cookie_helper.ccmock_cookie_helper.htest_browsing_data_model_delegate.cctest_browsing_data_model_delegate.h
core
browsing_topics
annotator.hannotator_fuzzer.ccannotator_impl.ccannotator_impl.hannotator_impl_unittest.ccannotator_noop.ccannotator_noop.hbrowsing_topics_calculator.ccbrowsing_topics_page_load_data_tracker_unittest.ccbrowsing_topics_service_impl.ccbrowsing_topics_service_impl_unittest.ccbrowsing_topics_state.ccbrowsing_topics_state.hbrowsing_topics_state_unittest.cc
common
epoch_topics.ccepoch_topics.htest_util.cctest_util.htopic_and_domains.cccast
message_port
cast_receiver
browser
cast_streaming
browser
cast_message_port_impl.cccast_message_port_impl_unittest.cccast_streaming_session.cccast_streaming_session.h
common
control
playback_command_dispatcher.ccplayback_command_dispatcher.h
remoting
renderer_control_multiplexer.ccrenderer_control_multiplexer.hframe
receiver_config.ccreceiver_session_impl.ccreceiver_session_impl.hcommon
renderer
common
control
playback_command_forwarding_renderer.ccplayback_command_forwarding_renderer.hplayback_command_forwarding_renderer_unittest.cc
frame
test
cbor
cdm
browser
common
renderer
chromeos_camera
client_hints
browser
cloud_devices
commerce
core
account_checker.ccaccount_checker_unittest.cc
android
bookmark_update_manager.ccbookmark_update_manager.hcommerce_heuristics_data.cccommerce_heuristics_data.hcommerce_types.hdiscounts_storage_unittest.ccinternals
metrics
mock_shopping_service.ccmock_shopping_service.hparcel
price_tracking_utils.ccprice_tracking_utils.hprice_tracking_utils_unittest.ccshopping_bookmark_model_observer.ccshopping_bookmark_model_observer.hshopping_power_bookmark_data_provider.ccshopping_service.ccshopping_service.hshopping_service_metrics_unittest.ccshopping_service_test_base.hshopping_service_unittest.ccsubscriptions
commerce_subscription.cccommerce_subscription.hsubscriptions_server_proxy.ccsubscriptions_server_proxy.hsubscriptions_server_proxy_unittest.ccsubscriptions_storage.cc
test_utils.cctest_utils.hwebui
component_updater
android
component_installer.cccomponent_installer.hcomponent_installer_unittest.cccomponent_updater_service.cccomponent_updater_service_internal.hcomponent_updater_utils.cccomponent_updater_utils.hconfigurator_impl.ccconfigurator_impl.hinstaller_policies
masked_domain_list_component_installer_policy.ccmasked_domain_list_component_installer_policy.hmasked_domain_list_component_installer_policy_unittest.ccoptimization_hints_component_installer_unittest.cctpcd_metadata_component_installer_policy.cctrust_token_key_commitments_component_installer_policy.cctrust_token_key_commitments_component_installer_policy.h
consent_auditor
content_capture
android
test_support
browser
content_relationship_verification
content_settings
android
browser
content_settings_manager_impl.ccpage_specific_content_settings.ccpage_specific_content_settings_unittest.cc
ui
core
browser
content_settings_policy_provider.cccontent_settings_pref.cccontent_settings_pref_provider.cccontent_settings_pref_provider.hcookie_settings_unittest.cchost_content_settings_map.cchost_content_settings_map.huser_modifiable_provider.h
common
renderer
contextual_search
core
crash
content
browser
core
cronet
android
cronet_url_request.ccnative
generated
native_metrics_util.ccnative_metrics_util.hnative_metrics_util_test.ccperftest
url_request.cctools
generators
crx_file
custom_handlers
desks_storage
core
device_reauth
device_signals
core
browser
agent_signals_collector.ccagent_signals_collector.hagent_signals_collector_unittest.cc
ash
crowdstrike_client.cccrowdstrike_client.hcrowdstrike_client_unittest.ccmetrics_utils.ccmetrics_utils.hsettings_signals_collector_unittest.ccsignals_types.huser_permission_service_impl_unittest.ccwin
common
cached_signal.hcommon_types.cccommon_types.h
mojom
system_signals_mojom_traits_common.ccsystem_signals_mojom_traits_common.hsystem_signals_mojom_traits_win.cc
platform_utils.hposix
win
system_signals
test
devtools
simple_devtools_protocol_client
discardable_memory
dom_distiller
content
browser
distillability_driver.hdistillable_page_utils.ccdistillable_page_utils.h
test
test_distillability_observer.hrenderer
core
domain_reliability
download
content
database
internal
background_service
controller_impl.cccontroller_impl.hcontroller_impl_unittest.ccdownload_driver.hdownload_store_unittest.ccdriver_entry.hfile_monitor_unittest.ccin_memory_download_driver.ccin_memory_download_driver.hin_memory_download_driver_unittest.cc
ios
log_source.hlogger_impl.ccstartup_status.htest
common
network
public
background_service
common
embedder_support
android
contextmenu
util
endpoint_fetcher
endpoint_fetcher.ccendpoint_fetcher.hendpoint_fetcher_unittest.ccmock_endpoint_fetcher.ccmock_endpoint_fetcher.h
enterprise
browser
content
clipboard_restriction_service.ccclipboard_restriction_service_unittest.cccopy_prevention_settings_policy_handler.cccopy_prevention_settings_policy_handler_unittests.cc
data_controls
idle
error_page
exo
client_controlled_shell_surface.ccclient_controlled_shell_surface.hdata_offer.ccdata_offer_unittest.ccdata_source.ccdata_source.hdata_source_delegate.hdata_source_unittest.ccdrag_drop_operation.ccdrag_drop_operation_unittest.ccextended_drag_source.ccextended_drag_source.hlayer_tree_frame_sink_holder.cclayer_tree_frame_sink_holder.hnotification.ccnotification.hnotification_surface.ccnotification_unittest.ccpointer.ccpointer.hpointer_unittest.ccseat.ccseat_unittest.ccshell_surface.ccshell_surface.hshell_surface_base.ccshell_surface_base.hshell_surface_presentation_time_recorder.ccshell_surface_presentation_time_recorder.hshell_surface_unittest.ccshell_surface_util.ccshell_surface_util.hsub_surface.ccsub_surface.hsub_surface_unittest.ccsurface.ccsurface.hsurface_tree_host.ccsurface_tree_host.hsurface_tree_host_unittest.ccsurface_unittest.ccwl_data_device_manager.cczaura_shell.cczaura_shell.hzcr_notification_shell.cczcr_touchpad_haptics.cczcr_ui_controls.cczwp_text_input_manager.cc
test
text_input.cctext_input.htext_input_unittest.cctouch.cctouch_unittest.ccui_lock_controller.ccwayland
clients
compatibility_test
template_client_event_receiver_version_tests.cc.tmplwayland_client_event_recorder.hwayland_client_registry.ccwayland_client_registry.h
serial_tracker.ccserial_tracker.hsurface_augmenter.cctest
wlcs
eye_dropper
favicon
core
feature_engagement
internal
android
availability_model.havailability_model_impl.ccavailability_model_impl.havailability_model_impl_unittest.cccondition_validator.hfeature_config_condition_validator.ccfeature_config_condition_validator.hfeature_config_condition_validator_unittest.ccinit_aware_event_model_unittest.ccnever_availability_model.ccnever_availability_model.hnever_availability_model_unittest.ccnever_condition_validator.ccnever_condition_validator.honce_condition_validator.cconce_condition_validator.honce_condition_validator_unittest.ccpersistent_availability_store_unittest.ccpersistent_event_store_unittest.cctracker_impl.cctracker_impl.htracker_impl_unittest.ccpublic
android
configuration.ccconfiguration.hfeature_configurations.ccfeature_configurations.hgroup_configurations.ccgroup_configurations.hios_promo_feature_configuration.ccios_promo_feature_configuration.hscalable_iph_feature_configurations.ccscalable_iph_feature_configurations.htracker.htest
feed
core
v2
api_test
feed_network.hfeed_network_impl.ccfeed_network_impl.hfeed_store_unittest.ccfeed_stream.ccfeed_stream.hfeedstore_util.ccfeedstore_util.hfeedstore_util_unittest.ccimage_fetcher.ccimage_fetcher.hios_shared_experiments_translator.ccios_shared_experiments_translator.hios_shared_experiments_translator_unittest.ccmetrics_reporter.ccmetrics_reporter.hprotocol_translator.ccprotocol_translator.hprotocol_translator_unittest.ccpublic
scheduling.ccstream_model_unittest.cctasks
test
types.cctypes_unittest.ccweb_feed_subscription_coordinator.ccweb_feed_subscription_coordinator.hweb_feed_subscriptions
feedback
fuchsia_component_support
fuchsia_legacymetrics
gcm_driver
global_media_controls
public
guest_view
gwp_asan
client
common
crash_handler
headless
heap_profiling
history
core
browser
expire_history_backend.ccexpire_history_backend.hexpire_history_backend_unittest.cchistory_backend.cchistory_backend.hhistory_backend_notifier.hhistory_backend_unittest.cchistory_service.cchistory_service.hhistory_service_observer.hhistory_service_unittest.cchistory_types.cchistory_types.hkeyword_search_term.h
sync
delete_directive_handler.ccdelete_directive_handler.hdelete_directive_handler_unittest.cchistory_backend_for_sync.hhistory_sync_bridge.cchistory_sync_bridge.hhistory_sync_bridge_unittest.cctest_history_backend_for_sync.cctest_history_backend_for_sync.h
top_sites_impl.ccurl_row.ccurl_row.hvisit_annotations_database.ccvisit_annotations_database_unittest.ccvisit_tracker.hweb_history_service.ccweb_history_service.hweb_history_service_unittest.cctest
history_clusters
core
cluster_interaction_state_processor_unittest.ccclusterer.ccclustering_test_utils.ccclustering_test_utils.hcontext_clusterer_history_service_observer.ccfile_clustering_backend.cchistory_cluster_type_utils.cchistory_clusters_service.cchistory_clusters_service.hhistory_clusters_service_task_update_cluster_triggerability.hhistory_clusters_types.hhistory_clusters_util_unittest.cclabel_cluster_finalizer.cclabel_cluster_finalizer_unittest.ccon_device_clustering_backend.ccon_device_clustering_backend.hon_device_clustering_backend_unittest.ccon_device_clustering_util_unittest.ccranking_cluster_finalizer.h
ui
image_fetcher
core
invalidation
impl
js_injection
language
content
browser
ulp_language_code_locator
ios
lens
leveldb_proto
link_header_util
live_caption
caption_bubble_context.hcaption_bubble_context_remote.cccaption_bubble_context_remote_unittest.cccaption_bubble_controller.hcaption_util.cccaption_util.hlive_caption_controller.h
views
local_state
lookalikes
manta
media_device_salt
media_device_salt_database.ccmedia_device_salt_database.hmedia_device_salt_database_unittest.ccmedia_device_salt_service.ccmedia_device_salt_service.h
media_message_center
media_controls_progress_view.ccmedia_notification_background_impl.ccmedia_notification_background_impl.hmedia_notification_background_impl_unittest.ccmedia_notification_item.hmedia_notification_view_impl.ccmedia_notification_view_impl.hmock_media_notification_item.h
media_router
browser
android
media_router_android.ccmedia_router_android.hmedia_router_android_bridge.ccmedia_router_android_unittest.cc
media_router_metrics.ccmedia_router_metrics.hmedia_router_metrics_unittest.ccmedia_sinks_observer.hmirroring_to_flinging_switcher_unittest.ccpresentation
common
memory_pressure
memory_pressure_voter.ccmemory_pressure_voter.hmemory_pressure_voter_unittest.ccmulti_source_memory_pressure_monitor_unittest.cc
memory_system
metal_util
metrics
call_stacks
call_stack_profile_builder_unittest.cccall_stack_profile_metadata.cccall_stack_profile_metadata.hcall_stack_profile_metadata_unittest.cccall_stack_profile_metrics_provider.cc
clean_exit_beacon.ccclean_exit_beacon.hclean_exit_beacon_unittest.ccdaily_event_unittest.ccdemographics
log_store.hmetrics_log.ccmetrics_log.hmetrics_log_store.ccmetrics_log_store.hmetrics_log_unittest.ccmetrics_logs_event_manager.ccmetrics_logs_event_manager.hmetrics_service.ccmetrics_service.hmetrics_service_client.ccmetrics_service_client.hmetrics_service_observer.ccmetrics_service_observer.hmetrics_service_unittest.ccmotherboard.ccmotherboard.hreporting_service_unittest.ccstructured
external_metrics_unittest.cckey_data_prefs_delegate.cckey_data_provider.hkey_util.cc
mojom
persistent_proto.cctest
ui
screen_info_metrics_provider.ccscreen_info_metrics_provider.hscreen_info_metrics_provider_unittest.cc
unsent_log_store.ccunsent_log_store.hunsent_log_store_unittest.ccmirroring
service
ml
nacl
renderer
named_mojo_ipc_server
navigation_interception
net_log
network_hints
network_session_configurator
network_time
no_state_prefetch
browser
no_state_prefetch_contents.ccno_state_prefetch_contents.hno_state_prefetch_link_manager.ccno_state_prefetch_link_manager.hno_state_prefetch_manager.ccno_state_prefetch_manager.hno_state_prefetch_processor_impl.hno_state_prefetch_processor_impl_unittest.cc
common
ntp_tiles
custom_links_manager_impl.cccustom_links_manager_impl.hcustom_links_manager_impl_unittest.cccustom_links_store.ccmost_visited_sites.ccmost_visited_sites.hmost_visited_sites_unittest.ccpopular_sites_impl.ccpopular_sites_impl_unittest.cc
offline_items_collection
core
android
offline_content_aggregator_bridge.ccoffline_content_aggregator_bridge.hoffline_item_bridge.ccoffline_item_bridge.h
filtered_offline_item_observer.ccfiltered_offline_item_observer.hfiltered_offline_item_observer_unittest.ccoffline_content_aggregator.ccoffline_content_aggregator.hoffline_content_aggregator_unittest.ccoffline_content_provider.ccoffline_content_provider.hoffline_item.htest_support
mock_filtered_offline_item_observer.hmock_offline_content_provider.ccmock_offline_content_provider.h
throttled_offline_content_provider.ccthrottled_offline_content_provider.hthrottled_offline_content_provider_unittest.ccupdate_delta.ccupdate_delta.hoffline_pages
core
omnibox
browser
actions
history_clusters_action.ccomnibox_action_in_suggest.ccomnibox_action_in_suggest.homnibox_action_in_suggest_unittest.cc
autocomplete_controller.ccautocomplete_controller.hautocomplete_controller_metrics_unittest.ccautocomplete_controller_unittest.ccautocomplete_grouper_sections.ccautocomplete_input.hautocomplete_match.ccautocomplete_match.hautocomplete_match_type_unittest.ccautocomplete_match_unittest.ccautocomplete_provider_unittest.ccautocomplete_result.ccautocomplete_result.hautocomplete_result_unittest.ccautocomplete_scoring_model_executor.ccautocomplete_scoring_model_executor.hautocomplete_scoring_model_executor_unittest.ccautocomplete_scoring_model_handler.ccautocomplete_scoring_model_handler.hautocomplete_scoring_model_handler_unittest.ccautocomplete_scoring_model_service.ccautocomplete_scoring_model_service.hbase_search_provider.ccbookmark_scoring_signals_annotator.ccclipboard_provider.ccclipboard_provider.hclipboard_provider_unittest.ccdocument_provider.ccdocument_provider_unittest.ccdocument_suggestions_service_unittest.cchistory_cluster_provider_unittest.cchistory_quick_provider.cchistory_quick_provider.hhistory_scoring_signals_annotator.cchistory_url_provider.ccomnibox_prefs.ccomnibox_triggered_feature_service_unittest.ccon_device_tail_model_service.ccon_device_tail_model_service_unittest.ccquery_tile_provider_unittest.ccscored_history_match.ccscored_history_match.hsearch_provider.ccsearch_suggestion_parser.ccsearch_suggestion_parser.hsearch_suggestion_parser_fuzzer.ccsearch_suggestion_parser_unittest.ccshortcuts_provider.ccshortcuts_provider_unittest.ccsuggestion_answer.ccsuggestion_answer.hsuggestion_answer_unittest.ccsuggestion_group_util.cctitled_url_match_utils.ccurl_scoring_signals_annotator.ccurl_scoring_signals_annotator_unittest.cczero_suggest_provider.ccopen_from_clipboard
clipboard_recent_content.hclipboard_recent_content_generic.ccclipboard_recent_content_generic.hclipboard_recent_content_generic_unittest.ccclipboard_recent_content_ios.hclipboard_recent_content_ios.mmclipboard_recent_content_ios_unittest.mmfake_clipboard_recent_content.ccfake_clipboard_recent_content.h
openscreen_platform
tls_connection_factory.cctls_connection_factory.htls_connection_factory_unittest.ccudp_socket.ccudp_socket.h
optimization_guide
content
browser
in_memory_text_embedding_manager.ccin_memory_text_embedding_manager.hin_memory_text_embedding_manager_unittest.ccpage_content_annotations_model_manager.ccpage_content_annotations_model_manager.hpage_content_annotations_model_manager_unittest.ccpage_content_annotations_service.ccpage_content_annotations_service.hpage_content_annotations_service_unittest.ccpage_content_annotations_validator.ccpage_content_annotations_web_contents_observer_unittest.ccpage_content_annotator.hpage_text_dump_result.ccpage_text_dump_result.hpage_text_dump_result_unittest.ccpage_text_observer.ccpage_text_observer.hpage_text_observer_unittest.cctest_page_content_annotator.cctest_page_content_annotator.h
renderer
core
base_model_executor.hbase_model_executor_helpers.hbatch_entity_metadata_task.ccbatch_entity_metadata_task.hbatch_entity_metadata_task_unittest.ccbert_model_executor.ccbert_model_executor.hbert_model_executor_unittest.ccbert_model_handler.ccbert_model_handler.hcommand_line_top_host_provider.ccentity_annotator_native_library.ccentity_metadata_provider.hhint_cache_unittest.cchints_fetcher.cchints_fetcher.hhints_fetcher_unittest.cchints_manager.cchints_manager.hhints_manager_unittest.ccmediapipe_text_model_executor.ccmediapipe_text_model_executor.hmediapipe_text_model_executor_unittest.ccmemory_hint.ccmemory_hint.h
model_execution
model_execution_fetcher_unittest.ccmodel_execution_manager.ccmodel_execution_manager_unittest.ccon_device_model_service_controller.h
model_executor.hmodel_handler.hmodel_handler_unittest.ccmodel_quality
model_store_metadata_entry.ccmodel_store_metadata_entry.hmodel_util.ccmodel_util.hmodel_util_unittest.ccmodel_validator.ccmodel_validator.hmodel_validator_unittest.ccoptimization_guide_features.ccoptimization_guide_features.hoptimization_guide_features_unittest.ccoptimization_guide_model_provider.hoptimization_guide_navigation_data.ccoptimization_guide_navigation_data.hoptimization_guide_store.ccoptimization_guide_store.hoptimization_guide_store_unittest.ccoptimization_guide_switches.ccoptimization_guide_switches.hoptimization_guide_switches_unittest.ccoptimization_guide_util.hoptimization_guide_util_unittest.ccoptimization_hints_component_update_listener.ccoptimization_hints_component_update_listener.hoptimization_metadata.hoptimization_metadata_unittest.ccpage_content_annotation_job.ccpage_content_annotation_job.hpage_content_annotation_job_executor.hpage_content_annotation_job_executor_unittest.ccpage_content_annotation_job_unittest.ccpage_content_annotations_common.ccpage_content_annotations_common.hpage_entities_model_handler.ccpage_entities_model_handler.hpage_entities_model_handler_impl.ccpage_entities_model_handler_impl.hpage_entities_model_handler_impl_unittest.ccpage_visibility_model_executor.ccpage_visibility_model_executor.hpage_visibility_model_fuzzer.ccpage_visibility_model_handler.ccpage_visibility_model_handler.hpage_visibility_model_handler_unittest.ccprediction_manager.ccprediction_manager.hprediction_manager_unittest.ccprediction_model_download_manager.ccprediction_model_download_manager.hprediction_model_download_manager_unittest.ccprediction_model_fetch_timer_unittest.ccprediction_model_fetcher.hprediction_model_fetcher_impl.ccprediction_model_fetcher_impl.hprediction_model_fetcher_unittest.ccprediction_model_override.ccprediction_model_store.ccstore_update_data.ccstore_update_data.htest_model_executor.cctest_model_executor.htest_model_handler.htest_optimization_guide_model_provider.cctest_optimization_guide_model_provider.htest_tflite_model_executor.cctest_tflite_model_executor.htest_tflite_model_handler.htext_embedding_model_executor.cctext_embedding_model_executor.htext_embedding_model_executor_unittest.cctext_embedding_model_handler.cctext_embedding_model_handler.htext_embedding_model_handler_unittest.cctflite_model_executor.htflite_model_executor_unittest.ccorigin_trials
os_crypt
async
browser
common
sync
key_storage_kwallet.cckey_storage_kwallet.hkey_storage_kwallet_unittest.cckey_storage_libsecret.cckey_storage_libsecret.hkey_storage_libsecret_unittest.cckey_storage_linux.cckey_storage_linux.hkey_storage_linux_unittest.cckwallet_dbus.cckwallet_dbus.hkwallet_dbus_unittest.ccos_crypt_linux.ccos_crypt_mocker_linux.ccos_crypt_mocker_linux.h
ownership
page_image_annotation
content
renderer
page_image_service
page_info
android
core
about_this_site_service.ccabout_this_site_service.habout_this_site_service_unittest.ccabout_this_site_validation.ccabout_this_site_validation.h
page_info.ccpage_info.hpage_info_delegate.hpage_info_ui.ccpage_info_ui.hpage_info_ui_delegate.hpage_load_metrics
browser
fake_page_load_metrics_observer_delegate.ccfake_page_load_metrics_observer_delegate.hmetrics_web_contents_observer.ccmetrics_web_contents_observer.hmetrics_web_contents_observer_unittest.ccpage_load_metrics_observer_delegate.hpage_load_metrics_test_waiter.hpage_load_metrics_update_dispatcher.ccpage_load_metrics_update_dispatcher.hpage_load_metrics_util.ccpage_load_metrics_util.hpage_load_metrics_util_unittest.ccpage_load_tracker.ccpage_load_tracker.hresponsiveness_metrics_normalization.ccresponsiveness_metrics_normalization.htest_metrics_web_contents_observer_embedder.cctest_metrics_web_contents_observer_embedder.h
observers
ad_metrics
ads_page_load_metrics_observer.ccads_page_load_metrics_observer.hads_page_load_metrics_observer_unittest.ccframe_tree_data.ccframe_tree_data.hpage_ad_density_tracker.ccpage_ad_density_tracker.h
back_forward_cache_page_load_metrics_observer.ccback_forward_cache_page_load_metrics_observer.hback_forward_cache_page_load_metrics_observer_unittest.cccore
largest_contentful_paint_handler.cclargest_contentful_paint_handler.huma_page_load_metrics_observer.cc
fenced_frames_page_load_metrics_observer.hpage_load_metrics_observer_tester.ccpage_load_metrics_observer_tester.hprerender_page_load_metrics_observer.hprivacy_sandbox_ads_page_load_metrics_observer.cccommon
page_load_metrics_mojom_traits.hpage_load_metrics_util.ccpage_load_metrics_util.hpage_load_timing.cc
renderer
paint_preview
browser
file_manager.ccfile_manager.hpaint_preview_base_service_unittest.ccpaint_preview_client_unittest.ccpaint_preview_compositor_client_impl.ccpaint_preview_compositor_client_impl.hpaint_preview_file_mixin.ccpaint_preview_file_mixin.htest_paint_preview_policy.cc
common
paint_preview_tracker.ccpaint_preview_tracker.hrecording_map.ccserialized_recording.ccserialized_recording.hserialized_recording_unittest.cc
player
android
bitmap_request.ccbitmap_request.hplayer_compositor_delegate.ccplayer_compositor_delegate.hplayer_compositor_delegate_unittest.ccpublic
renderer
password_manager
core
payments
content
android
android_app_communication.handroid_app_communication_ash.ccandroid_app_communication_helpers.ccandroid_app_communication_helpers.handroid_app_communication_lacros.ccandroid_app_communication_stub.ccandroid_app_communication_unittest.ccandroid_payment_app.ccandroid_payment_app.handroid_payment_app_factory.ccandroid_payment_app_factory_unittest.ccandroid_payment_app_unittest.cccontent_payment_request_delegate.hmock_android_app_communication.hmock_payment_app_factory_delegate.hpayment_app_factory.hpayment_credential.hpayment_request_state.ccpayment_request_state.hsecure_payment_confirmation_app_factory.ccsecure_payment_confirmation_controller.ccsecure_payment_confirmation_model.hservice_worker_payment_app_unittest.cctest_content_payment_request_delegate.cctest_content_payment_request_delegate.hutility
core
pdf
browser
fake_pdf_stream_delegate.ccfake_pdf_stream_delegate.hmock_url_loader_client.hpdf_navigation_throttle.ccpdf_stream_delegate.ccpdf_stream_delegate.hpdf_url_loader_request_interceptor.ccplugin_response_writer.ccplugin_response_writer_unittest.cc
renderer
performance_manager
decorators
execution_context_priority
boosting_vote_aggregator.hmax_vote_aggregator.ccoverride_vote_aggregator.ccoverride_vote_aggregator.h
freezing
graph
frame_node_impl.ccframe_node_impl.hframe_node_impl_describer.ccnode_data_describer_util_unittest.ccpage_node_impl.ccpage_node_impl.hpage_node_impl_describer.ccpage_node_impl_unittest.ccprocess_node_impl.ccprocess_node_impl.hprocess_node_impl_unittest.cc
performance_manager_lifetime.ccpersistence
site_data
leveldb_site_data_store.ccleveldb_site_data_store_unittest.ccnon_recording_site_data_cache.ccsite_data_cache_factory.ccsite_data_cache_factory.hsite_data_cache_factory_unittest.ccsite_data_cache_inspector.hsite_data_impl.ccsite_data_impl.hsite_data_impl_unittest.ccsite_data_reader_unittest.ccsite_data_store.h
power
battery_level_provider_chromeos.ccbattery_level_provider_chromeos.hbattery_level_provider_chromeos_unittest.cc
public
graph
resource_attribution
user_tuning
v8_memory
resource_attribution
frame_context.ccframe_context_unittest.ccpage_context.ccpage_context_unittest.ccprocess_context.ccprocess_context_unittest.ccqueries_unittest.ccresource_contexts_unittest.cctype_helpers_unittest.ccworker_context.ccworker_context_unittest.cc
test_support
persistence
resource_attribution
user_tuning
v8_memory
v8_context_tracker.ccv8_context_tracker_helpers.ccv8_context_tracker_helpers.hv8_context_tracker_helpers_unittest.ccv8_context_tracker_unittest.ccv8_detailed_memory.ccv8_detailed_memory_any_seq.ccv8_memory_test_helpers.ccv8_memory_test_helpers.hweb_memory_aggregator.ccweb_memory_aggregator.hweb_memory_aggregator_unittest.ccweb_memory_impl_unittest.cc
permissions
android
permission_prompt
contexts
notifications_engagement_service.ccnotifications_engagement_service.hobject_permission_context_base.ccobject_permission_context_base.horigin_keyed_permission_action_service.ccorigin_keyed_permission_action_service.hpepc_initiated_permission_request_unittest.ccpermission_actions_history.ccpermission_actions_history_unittest.ccpermission_auditing_database.ccpermission_auditing_database.hpermission_auditing_database_unittest.ccpermission_auditing_service.hpermission_auditing_service_unittest.ccpermission_context_base.ccpermission_context_base.hpermission_context_base_unittest.ccpermission_decision_auto_blocker.ccpermission_decision_auto_blocker.hpermission_decision_auto_blocker_unittest.ccpermission_manager.ccpermission_manager.hpermission_manager_unittest.ccpermission_prompt.hpermission_recovery_success_rate_tracker.hpermission_request.ccpermission_request.hpermission_request_data.hpermission_request_manager.ccpermission_request_manager.hpermission_request_manager_unittest.ccpermission_ui_selector.ccpermission_ui_selector.hpermission_uma_util.ccpermission_uma_util.hpermission_uma_util_unittest.ccpermission_util.ccpermission_util.hpermissions_client.ccpermissions_client.hprediction_service
prediction_model_executor.ccprediction_model_executor.hprediction_model_handler.ccprediction_model_handler.hprediction_service.ccprediction_service_base.hprediction_service_unittest.cc
request_type.ccrequest_type.htest
plugins
renderer
plus_addresses
plus_address_client.ccplus_address_client.hplus_address_client_unittest.ccplus_address_parser.ccplus_address_parser.hplus_address_parser_unittest.ccplus_address_service.ccplus_address_service.hplus_address_service_unittest.ccplus_address_test_utils.cc
policy
content
core
browser
configuration_policy_handler.ccconfiguration_policy_handler.hconfiguration_policy_handler_unittest.ccpolicy_conversions_client.ccpolicy_conversions_client.hpolicy_conversions_client_unittest.ccpolicy_pref_mapping_test.cc
signin
profile_separation_policies.ccprofile_separation_policies.huser_cloud_signin_restriction_policy_fetcher.cc
url_blocklist_manager.ccurl_blocklist_manager.hurl_blocklist_policy_handler.ccurl_scheme_list_policy_handler_unittest.ccwebui
common
android
async_policy_loader.hcloud
cloud_external_data_store_unittest.cccloud_policy_client.cccloud_policy_client.hcloud_policy_client_unittest.cccloud_policy_manager.cccloud_policy_service.hcloud_policy_util.cccloud_policy_validator.cccloud_policy_validator.hcomponent_cloud_policy_service_unittest.cccomponent_cloud_policy_store_unittest.cccomponent_cloud_policy_updater_unittest.ccdevice_management_service.ccdevice_management_service.hdevice_management_service_unittest.ccdmserver_job_configurations.ccdmserver_job_configurations.hencrypted_reporting_job_configuration.ccencrypted_reporting_job_configuration_unittest.ccrealtime_reporting_job_configuration.ccrealtime_reporting_job_configuration_unittest.ccreporting_job_configuration_base.ccreporting_job_configuration_base.hresource_cache.ccresource_cache.hresource_cache_unittest.ccuser_info_fetcher.cc
config_dir_policy_loader.ccmanagement
policy_loader_ios.mmpolicy_loader_lacros.hpolicy_loader_win.ccpolicy_map.ccpolicy_map.hpolicy_map_unittest.ccpolicy_proto_decoders.ccregistry_dict.ccregistry_dict.hregistry_dict_unittest.ccremote_commands
schema.ccschema.hschema_fuzzer.ccschema_map_unittest.cctest_support
power_bookmarks
core
storage
prefs
json_pref_store.ccjson_pref_store.hoverlay_user_pref_store.ccpref_member.ccpref_service.cctesting_pref_store.cc
printing
browser
print_to_pdf
common
renderer
test
privacy_sandbox
canonical_topic.cccanonical_topic.h
privacy_sandbox_attestations
privacy_sandbox_attestations.ccprivacy_sandbox_attestations.hprivacy_sandbox_attestations_parser.ccprivacy_sandbox_attestations_parser.hprivacy_sandbox_attestations_parser_unittest.cc
privacy_sandbox_settings_impl.ccprivacy_sandbox_settings_impl.hprivacy_sandbox_settings_impl_unittest.ccprivacy_sandbox_test_util.ccprivacy_sandbox_test_util.hproxy_config
qr_code_generator
query_tiles
android
internal
init_aware_tile_service.ccinit_aware_tile_service.hinit_aware_tile_service_unittest.cctile_manager.cctile_manager.htile_manager_unittest.cctile_service_impl.cctile_service_impl.htile_service_impl_unittest.cc
test
tile_service.hquirks
reading_list
core
reduce_accept_language
browser
remote_cocoa
app_shim
renderer_context_menu
reporting
client
report_queue_configuration.ccreport_queue_configuration.hreport_queue_impl.ccreport_queue_impl.hreport_queue_impl_unittest.cc
compression
compression_module.cccompression_module.hcompression_module_unittest.cctest_compression_module.cctest_compression_module.h
encryption
metrics
collector_base.hdelayed_sampler_unittest.cc
fakes
manual_collector.ccmanual_collector.hmanual_collector_unittest.ccmetric_event_observer_manager_unittest.ccone_shot_collector.ccone_shot_collector.hone_shot_collector_unittest.ccperiodic_collector.ccperiodic_collector.hperiodic_collector_unittest.ccperiodic_event_collector.ccperiodic_event_collector.hperiodic_event_collector_unittest.ccsampler.hresources
storage
storage.ccstorage.hstorage_queue.ccstorage_queue.hstorage_queue_stress_test.ccstorage_queue_unittest.ccstorage_unittest.cctest_storage_module.h
util
safe_browsing
android
content
browser
async_check_tracker.ccasync_check_tracker.hbase_blocking_page.ccbase_blocking_page.hbase_ui_manager.ccbase_ui_manager.hbrowser_url_loader_throttle.ccbrowser_url_loader_throttle.hbrowser_url_loader_throttle_unittest.ccclient_side_phishing_model.ccclient_side_phishing_model.hclient_side_phishing_model_unittest.cc
download
mojo_safe_browsing_impl.ccsafe_browsing_blocking_page_factory.hsafe_browsing_navigation_observer_manager.ccsafe_browsing_navigation_observer_manager.hsafe_browsing_navigation_throttle.ccthreat_details.ccthreat_details.htriggers
ad_sampler_trigger.ccmock_trigger_manager.htrigger_manager.cctrigger_manager.htrigger_manager_unittest.cc
ui_manager.ccui_manager.hui_manager_unittest.ccurl_checker_on_sb.ccurl_checker_on_sb.hweb_api_handshake_checker.ccweb_ui
common
renderer
core
browser
db
hash_realtime_mechanism.cchash_realtime_mechanism.hhashprefix_realtime
hash_realtime_cache_unittest.cchash_realtime_service.cchash_realtime_service.hhash_realtime_service_unittest.cchash_realtime_utils.cchash_realtime_utils_unittest.ccohttp_key_service.ccohttp_key_service.hohttp_key_service_unittest.cc
ping_manager_unittest.ccrealtime
safe_browsing_lookup_mechanism.ccsafe_browsing_lookup_mechanism.hsafe_browsing_lookup_mechanism_runner.ccsafe_browsing_lookup_mechanism_runner.hsafe_browsing_metrics_collector.ccsafe_browsing_metrics_collector.hsafe_browsing_metrics_collector_unittest.ccsafe_browsing_url_checker_impl.ccsafe_browsing_url_checker_impl.hsafe_browsing_url_checker_impl_unittest.cctailored_security_service
url_realtime_mechanism.ccurl_realtime_mechanism.huser_population.ccuser_population.huser_population_unittest.ccverdict_cache_manager.ccverdict_cache_manager.hcommon
safe_search_api
safe_search
saved_tab_groups
saved_tab_group.ccsaved_tab_group.hsaved_tab_group_model.ccsaved_tab_group_model.hsaved_tab_group_model_observer.hsaved_tab_group_model_unittest.ccsaved_tab_group_proto_conversion_unittest.ccsaved_tab_group_sync_bridge.ccsaved_tab_group_sync_bridge.hsaved_tab_group_sync_bridge_unittest.ccsaved_tab_group_tab.ccsaved_tab_group_tab.hsaved_tab_group_unittest.cc
schema_org
search
search_engines
default_search_policy_handler_unittest.cckeyword_table.cc
search_engine_choice
site_search_policy_handler_unittest.cctemplate_url.cctemplate_url_data_util.cctemplate_url_service.cctemplate_url_service.hsearch_provider_logos
security_interstitials
content
ssl_error_assistant.ccssl_error_assistant.hssl_error_assistant_unittest.ccssl_error_handler.ccstateful_ssl_host_state_delegate.cc
core
segmentation_platform
embedder
default_model
android_home_module_ranker.cccontextual_page_actions_model.cccross_device_user_segment.ccdefault_model_test_base.ccdefault_model_test_base.hdevice_switcher_model.ccdevice_switcher_result_dispatcher.ccdevice_switcher_result_dispatcher.hdevice_switcher_result_dispatcher_unittest.ccdevice_tier_segment.ccdevice_tier_segment.hfeed_user_segment.ccfrequent_feature_user_model.ccintentional_user_model.ccios_module_ranker.cclow_user_engagement_model.ccmost_visited_tiles_user.ccoptimization_target_segmentation_dummy.ccpassword_manager_user_segment.ccpower_user_segment.ccresume_heavy_user_model.ccsearch_user_model.ccsearch_user_model.hshopping_user_model.cctab_resumption_ranker.cctablet_productivity_user_model.cctablet_productivity_user_model.h
input_delegate
model_provider_factory_impl.ccmodel_provider_factory_impl_unittest.cctab_fetcher.cctab_fetcher.hinternal
config_parser.cc
data_collection
training_data_cache.cctraining_data_cache.htraining_data_cache_unittest.cctraining_data_collector.htraining_data_collector_impl.cctraining_data_collector_impl.htraining_data_collector_impl_unittest.cc
database
cached_result_provider.cccached_result_provider.hcached_result_provider_unittest.ccclient_result_prefs.ccclient_result_prefs.hclient_result_prefs_unittest.ccconfig_holder.ccconfig_holder.hmock_signal_database.hsegment_info_cache.ccsegment_info_cache.hsegment_info_cache_unittest.ccsegment_info_database.ccsegment_info_database.hsegment_info_database_unittest.ccsignal_database.hsignal_database_impl.ccsignal_database_impl.hsignal_database_impl_unittest.ccsignal_sample_view.ccsignal_sample_view.hsignal_sample_view_unittest.ccstorage_service.htest_segment_info_database.cctest_segment_info_database.hukm_metrics_table_unittest.cc
execution
mock_model_provider.hmodel_executor_impl.ccmodel_executor_impl.hmodel_executor_impl_unittest.ccmodel_manager.hmodel_manager_impl.ccmodel_manager_impl.hmodel_manager_impl_unittest.cc
optimization_guide
optimization_guide_segmentation_model_handler.ccoptimization_guide_segmentation_model_handler.hoptimization_guide_segmentation_model_provider.ccoptimization_guide_segmentation_model_provider_unittest.ccsegmentation_model_executor.ccsegmentation_model_executor.hsegmentation_model_executor_unittest.cc
processing
custom_input_processor.ccfeature_aggregator.hfeature_aggregator_impl.ccfeature_aggregator_impl.hfeature_aggregator_impl_unittest.ccfeature_list_query_processor.ccfeature_list_query_processor.hfeature_list_query_processor_unittest.ccfeature_processor_state.ccfeature_processor_state.hmock_feature_aggregator.hsync_device_info_observer.ccsync_device_info_observer_unittest.ccuma_feature_processor.ccuma_feature_processor_unittest.cc
metadata
metrics
migration
post_processor
scheduler
segment_id_convertor.ccsegment_id_convertor.hsegmentation_platform_service_impl.ccsegmentation_platform_service_impl.hsegmentation_ukm_helper.ccsegmentation_ukm_helper.hsegmentation_ukm_helper_unittest.ccselection
experimental_group_recorder.hrequest_dispatcher.hrequest_handler_unittest.ccresult_refresh_manager.ccresult_refresh_manager_unittest.ccsegment_result_provider.ccsegment_result_provider.hsegment_result_provider_unittest.ccsegment_score_provider.hsegment_selector.hsegment_selector_impl.ccsegment_selector_unittest.ccsegmentation_result_prefs.ccsegmentation_result_prefs.hsegmentation_result_prefs_unittest.cc
service_proxy_impl.ccservice_proxy_impl.hsignals
history_delegate_impl.hhistory_service_observer.cchistory_service_observer.huser_action_signal_handler.ccuser_action_signal_handler_unittest.cc
stats.ccstats.hstats_unittest.ccukm_data_manager_impl.hukm_data_manager_impl_unittest.ccpublic
send_tab_to_self
entry_point_display_reason.ccentry_point_display_reason.hsend_tab_to_self_bridge.ccsend_tab_to_self_bridge.hsend_tab_to_self_bridge_unittest.ccsend_tab_to_self_sync_service.ccsend_tab_to_self_sync_service.htarget_device_info_unittest.cc
services
app_service
public
cpp
app_capability_access_cache_unittest.ccapp_capability_access_cache_wrapper_unittest.ccapp_launch_util.h
app_storage
app_types.happ_types_unittest.ccapp_update.ccapp_update.happ_update_unittest.cccapability_access.hcapability_access_update.cccapability_access_update.hcapability_access_update_unittest.ccicon_cache.ccicon_cache.hicon_coalescer.ccicon_coalescer.hicon_info.hicon_loader.ccicon_loader.hicon_types.ccicon_types.hinstance_registry.hintent.ccintent.hintent_filter.hintent_filter_util.ccintent_util.ccintent_util.hintent_util_unittest.ccpackage_id.ccpackage_id.hpackage_id_unittest.ccpermission.ccpermission.hpreferred_apps_converter.ccpreferred_apps_converter_unittest.ccpreferred_apps_list.ccpreferred_apps_list.hpreferred_apps_list_handle.hpreferred_apps_list_unittest.ccrun_on_os_login_types.ccrun_on_os_login_types.hshortcut
stub_icon_loader.ccstub_icon_loader.hfilesystem
font
heap_profiling
paint_preview_compositor
screen_ai
proto
screen_ai_library_wrapper.ccscreen_ai_library_wrapper.hscreen_ai_service_impl.ccscreen_ai_service_impl.hstorage
dom_storage
async_dom_storage_database.ccasync_dom_storage_database.hdom_storage_database.ccdom_storage_database.hdom_storage_database_unittest.cclocal_storage_impl.cclocal_storage_impl_unittest.ccsession_storage_area_impl.ccsession_storage_area_impl.hsession_storage_area_impl_unittest.ccsession_storage_data_map_unittest.ccsession_storage_impl.ccsession_storage_impl_unittest.ccsession_storage_metadata.ccsession_storage_metadata.hsession_storage_metadata_unittest.ccsession_storage_namespace_impl_unittest.ccstorage_area_impl.ccstorage_area_impl.hstorage_area_impl_unittest.ccstorage_area_test_util.ccstorage_area_test_util.htesting_legacy_session_storage_database.cctesting_legacy_session_storage_database.h
indexed_db
partition_impl.ccpartition_impl.hpartition_impl_unittest.ccpublic
cpp
service_worker
service_worker_database.ccservice_worker_database_unittest.ccservice_worker_resource_ops.ccservice_worker_storage.ccservice_worker_storage.hservice_worker_storage_control_impl.ccservice_worker_storage_control_impl.hservice_worker_storage_control_impl_unittest.ccservice_worker_storage_test_utils.hservice_worker_storage_unittest.cc
shared_storage
async_shared_storage_database.hshared_storage_database.ccshared_storage_database.hshared_storage_manager.h
storage_service_impl.ccstorage_service_impl.hstorage_service_impl_unittest.ccsession_proto_db
sessions
content
core
base_session_service_commands.ccbase_session_service_commands.hcommand_storage_backend.cccommand_storage_backend.hcommand_storage_backend_unittest.cclive_tab_context.hserialized_navigation_entry.hserialized_user_agent_override.hsession_service_commands.ccsession_service_commands.hsession_types.htab_restore_service.htab_restore_service_helper.cctab_restore_service_helper.htab_restore_service_impl.cctab_restore_service_impl.h
shared_highlighting
core
common
ios
signin
core
browser
internal
identity_manager
account_capabilities_fetcher.ccaccount_capabilities_fetcher.haccount_capabilities_fetcher_android.ccaccount_capabilities_fetcher_gaia.ccaccount_capabilities_fetcher_unittest.ccaccount_fetcher_service.ccaccount_fetcher_service.haccount_info_util.ccaccount_info_util.haccount_info_util_unittest.ccaccount_tracker_service.ccaccount_tracker_service.haccount_tracker_service_unittest.ccaccounts_mutator_impl.ccdevice_accounts_synchronizer_impl.ccdevice_accounts_synchronizer_impl.hfake_account_capabilities_fetcher.ccfake_account_capabilities_fetcher.hfake_account_capabilities_fetcher_factory.ccfake_account_capabilities_fetcher_factory.hgaia_cookie_manager_service.ccgaia_cookie_manager_service_unittest.ccmutable_profile_oauth2_token_service_delegate.ccmutable_profile_oauth2_token_service_delegate_unittest.ccprimary_account_manager.hprimary_account_manager_unittest.ccprofile_oauth2_token_service_delegate.ccprofile_oauth2_token_service_delegate.hprofile_oauth2_token_service_delegate_android.ccprofile_oauth2_token_service_delegate_android.hprofile_oauth2_token_service_delegate_android_unittest.ccprofile_oauth2_token_service_delegate_ios.ccprofile_oauth2_token_service_delegate_ios.htest_profile_oauth2_token_service_delegate_chromeos.cctest_profile_oauth2_token_service_delegate_chromeos.htoken_binding_helper.cc
ios
public
site_engagement
site_isolation
soda
spellcheck
browser
sqlite_proto
startup_metric_utils
subresource_filter
content
browser
activation_state_computing_navigation_throttle.ccactivation_state_computing_navigation_throttle.hactivation_state_computing_navigation_throttle_unittest.ccad_tagging_browser_test_utils.ccads_intervention_manager.ccads_intervention_manager.hads_intervention_manager_unittest.ccasync_document_subresource_filter.hcontent_subresource_filter_throttle_manager.cccontent_subresource_filter_throttle_manager.hcontent_subresource_filter_throttle_manager_unittest.ccprofile_interaction_manager.ccsubresource_filter_content_settings_manager.ccsubresource_filter_content_settings_manager.hsubresource_filter_content_settings_manager_unittest.ccsubresource_filter_observer_test_utils.ccsubresource_filter_observer_test_utils.hsubresource_filter_safe_browsing_activation_throttle.ccsubresource_filter_safe_browsing_activation_throttle_unittest.cc
common
renderer
tools
supervised_user
core
browser
fetcher_config.hproto_fetcher.ccproto_fetcher.hproto_fetcher_unittest.ccsupervised_user_preferences.ccsupervised_user_settings_service.ccsupervised_user_settings_service.hsupervised_user_settings_service_unittest.cc
common
test_support
sync
base
passphrase_enums.ccpassphrase_enums.hsync_invalidation_adapter.ccsync_invalidation_adapter.huser_selectable_type.ccuser_selectable_type.h
engine
cycle
forwarding_model_type_processor.ccforwarding_model_type_processor.hloopback_server
model_type_processor.hmodel_type_processor_proxy.ccmodel_type_processor_proxy.hmodel_type_worker.ccmodel_type_worker.hmodel_type_worker_unittest.ccnigori
cross_user_sharing_public_key.cccross_user_sharing_public_key.hcross_user_sharing_public_key_unittest.cccross_user_sharing_public_private_key_pair.cccross_user_sharing_public_private_key_pair.hcross_user_sharing_public_private_key_pair_unittest.cccryptographer.h
sync_scheduler_impl.ccsync_scheduler_impl.hsyncer_proto_util.ccsyncer_unittest.ccinvalidations
fcm_handler.ccfcm_handler_unittest.ccsync_invalidations_service.hsync_invalidations_service_impl.ccsync_invalidations_service_impl.h
model
blocking_model_type_store.hblocking_model_type_store_impl.ccblocking_model_type_store_impl.hclient_tag_based_model_type_processor.ccclient_tag_based_model_type_processor.hclient_tag_based_model_type_processor_unittest.ccclient_tag_based_remote_update_handler.ccclient_tag_based_remote_update_handler.hmodel_type_change_processor.hmodel_type_store.hmodel_type_store_backend.ccmodel_type_store_backend.hmodel_type_store_backend_unittest.ccmodel_type_store_impl.ccmodel_type_store_impl.hmodel_type_store_impl_unittest.ccmodel_type_store_service_impl_unittest.ccmodel_type_sync_bridge.hsync_change_processor.hsync_metadata_store_change_list.ccsync_metadata_store_change_list.hsyncable_service.hsyncable_service_based_bridge.ccsyncable_service_based_bridge.hsyncable_service_based_bridge_unittest.cc
nigori
cross_user_sharing_keys.cccryptographer_impl.cccryptographer_impl.hcryptographer_impl_unittest.ccnigori_local_change_processor.hnigori_model_type_processor.ccnigori_model_type_processor.hnigori_model_type_processor_unittest.ccnigori_state.ccnigori_state.hnigori_state_unittest.ccnigori_storage.hnigori_storage_impl.ccnigori_storage_impl.hnigori_storage_impl_unittest.ccnigori_sync_bridge.hnigori_sync_bridge_impl.ccnigori_sync_bridge_impl.hnigori_sync_bridge_impl_unittest.ccpending_local_nigori_commit.cc
service
glue
model_load_manager.hnon_ui_syncable_service_based_model_type_controller.ccpassphrase_type_metrics_provider.ccpassphrase_type_metrics_provider_unittest.ccsync_policy_handler.ccsync_prefs.ccsync_prefs.hsync_service_crypto.ccsync_service_crypto.hsync_service_crypto_unittest.ccsync_service_impl.ccsync_service_impl.hsync_user_settings.hsync_user_settings_impl.ccsync_user_settings_impl.hsync_user_settings_impl_unittest.cctest
entity_builder_factory.ccentity_builder_factory.hfake_cryptographer.ccfake_cryptographer.hfake_model_type_controller_delegate.hfake_model_type_processor.ccfake_model_type_processor.hfake_model_type_sync_bridge.ccfake_model_type_sync_bridge.hfake_server.ccfake_server.hfake_sync_change_processor.ccfake_sync_change_processor.hfake_sync_scheduler.ccfake_sync_scheduler.hforwarding_model_type_change_processor.ccforwarding_model_type_change_processor.hmock_model_type_change_processor.hmock_model_type_processor.ccmock_model_type_processor.hmock_model_type_worker.ccmock_sync_invalidations_service.hmodel_type_store_test_util.ccnigori_test_utils.ccnigori_test_utils.hstub_model_type_sync_bridge.ccstub_model_type_sync_bridge.hsync_change_processor_wrapper_for_test.ccsync_change_processor_wrapper_for_test.hsync_user_settings_mock.htest_matchers.htest_sync_user_settings.cctest_sync_user_settings.h
sync_bookmarks
bookmark_model_type_processor.ccbookmark_model_type_processor.hbookmark_model_type_processor_unittest.ccbookmark_model_view.ccbookmark_model_view.hbookmark_remote_updates_handler_unittest.cclocal_bookmark_model_merger.cclocal_bookmark_model_merger_unittest.ccsynced_bookmark_tracker.ccsynced_bookmark_tracker.hsynced_bookmark_tracker_unittest.cctest_bookmark_model_view.h
sync_device_info
device_info.ccdevice_info.hdevice_info_prefs.ccdevice_info_sync_bridge.ccdevice_info_sync_bridge.hdevice_info_sync_bridge_unittest.ccdevice_info_sync_client.hfake_device_info_tracker.hfake_local_device_info_provider.cclocal_device_info_provider_impl.cclocal_device_info_provider_impl_unittest.cclocal_device_info_util.cclocal_device_info_util_mac.mm
sync_preferences
common_syncable_prefs_database.cccommon_syncable_prefs_database.hdual_layer_user_pref_store.ccpref_model_associator.ccpref_model_associator.hpref_service_syncable_unittest.ccpreferences_merge_helper.ccpreferences_merge_helper_unittest.ccsyncable_prefs_database.ccsyncable_prefs_database.htest_syncable_prefs_database.cctest_syncable_prefs_database.h
sync_sessions
session_store.ccsession_store.hsession_store_unittest.ccsession_sync_bridge.ccsession_sync_bridge.hsession_sync_bridge_unittest.ccsynced_session.ccsynced_session.hsynced_session_tracker.ccsynced_session_tracker.hsynced_session_unittest.cc
sync_user_events
system_cpu
cpu_probe.cccpu_probe.hcpu_probe_linux.cccpu_probe_linux_unittest.cccpu_probe_mac.cccpu_probe_mac_unittest.cccpu_probe_unittest.cccpu_probe_win.cccpu_probe_win_unittest.ccpressure_test_support.ccpressure_test_support.h
system_media_controls
linux
mac
thin_webview
internal
tpcd
metadata
tracing
common
translate
content
browser
renderer
core
browser
ios
trusted_vault
download_keys_response_handler.ccdownload_keys_response_handler.hsecurebox.ccsecurebox.hsecurebox_unittest.ccstandalone_trusted_vault_backend.ccstandalone_trusted_vault_backend.hstandalone_trusted_vault_backend_unittest.ccstandalone_trusted_vault_client.ccstandalone_trusted_vault_client.h
test
trusted_vault_access_token_fetcher_frontend.htrusted_vault_connection.htrusted_vault_connection_impl.cctrusted_vault_connection_impl.htrusted_vault_connection_impl_unittest.cctrusted_vault_crypto.cctrusted_vault_crypto.htrusted_vault_crypto_unittest.cctrusted_vault_degraded_recoverability_handler_unittest.cctrusted_vault_histograms.cctrusted_vault_histograms.htrusted_vault_request.cctrusted_vault_request.htrusted_vault_request_unittest.cctrusted_vault_server_constants.cctrusted_vault_server_constants.htrusted_vault_server_constants_unittest.ccui_devtools
ukm
unexportable_keys
background_long_task_scheduler.ccbackground_task.hbackground_task_impl.hunexportable_key_service_impl.ccunexportable_key_task_manager.ccunexportable_key_tasks.ccunexportable_key_tasks.h
unified_consent
update_client
background_downloader_mac.mmcomponent.cccomponent.hconfigurator.hcrx_cache.cccrx_cache.hcrx_cache_unittest.cccrx_downloader_factory.cccrx_downloader_factory.hcrx_update_item.hping_manager.ccping_manager_unittest.ccprotocol_definition.hprotocol_parser_json.ccprotocol_serializer.ccprotocol_serializer.hprotocol_serializer_fuzzer.ccprotocol_serializer_json_unittest.cctest_configurator.cctest_configurator.htest_installer.ccupdate_checker.ccupdate_checker.hupdate_checker_unittest.ccupdate_client.hupdate_client_unittest.ccupdate_engine.ccupdate_engine.hutils.ccutils.h
upload_list
url_pattern_index
url_rewrite
browser
common
user_education
common
feature_promo_controller.ccfeature_promo_result.hfeature_promo_session_policy.ccfeature_promo_session_policy.hfeature_promo_specification.ccfeature_promo_specification.hfeature_promo_storage_service.ccfeature_promo_storage_service.hhelp_bubble_factory_registry.hhelp_bubble_params.htutorial.cctutorial.htutorial_description.htutorial_service.cctutorial_service.htutorial_unittest.cc
test
views
help_bubble_factory_views.cchelp_bubble_factory_views.hhelp_bubble_view.cchelp_bubble_view.hhelp_bubble_view_unittest.cc
webui
user_manager
fake_user_manager.ccfake_user_manager.hknown_user.ccknown_user.hknown_user_unittest.cc
multi_user
user.huser_directory_integrity_manager.ccuser_directory_integrity_manager.huser_manager.huser_manager_base.ccuser_manager_base.huser_notes
storage
value_store
lazy_leveldb.cclazy_leveldb.hleveldb_value_store.cctesting_value_store.ccvalue_store_change.ccvalue_store_change.hvalue_store_change_unittest.ccvalue_store_frontend.ccvalue_store_frontend.hvalue_store_frontend_unittest.ccvalue_store_test_suite.cc
visitedlink
viz
client
common
features.ccfeatures.h
frame_sinks
gpu
quads
aggregated_render_pass.ccaggregated_render_pass.hcompositor_frame_metadata.hcompositor_frame_metadata_unittest.cccompositor_render_pass.cccompositor_render_pass.hcompositor_render_pass_unittest.ccdraw_quad_perftest.ccdraw_quad_unittest.ccframe_deadline.ccframe_deadline.hrender_pass_internal.hrender_pass_io.ccrender_pass_io_unittest.ccshared_quad_state.ccshared_quad_state.hsurface_draw_quad.cctexture_draw_quad.hyuv_video_draw_quad.ccyuv_video_draw_quad.h
resources
surfaces
switches.ccswitches.hdemo
client
host
client_frame_sink_video_capturer.ccclient_frame_sink_video_capturer.hgpu_host_impl.ccgpu_host_impl.hhost_frame_sink_manager.cchost_frame_sink_manager.hhost_frame_sink_manager_unittest.cc
service
compositor_frame_fuzzer
compositor_frame_fuzzer.cccompositor_frame_fuzzer_util.ccfuzzer_browser_process.ccfuzzer_browser_process.hfuzzer_software_output_surface_provider.ccfuzzer_software_output_surface_provider.h
debugger
display
aggregated_frame.hca_layer_overlay.hcopy_output_scaling_pixeltest.ccdc_layer_overlay.ccdelegated_ink_point_renderer_base.ccdelegated_ink_point_renderer_base.hdelegated_ink_trail_data.ccdelegated_ink_trail_data.hdirect_renderer.ccdirect_renderer.hdisplay.ccdisplay_damage_tracker.hdisplay_perftest.ccdisplay_resource_provider_skia_unittest.ccdisplay_scheduler.hdisplay_scheduler_base.hdisplay_unittest.ccexternal_use_client.ccexternal_use_client.hframe_rate_decider.ccframe_rate_decider_unittest.ccoutput_surface.houtput_surface_frame.hoverlay_ca_unittest.ccoverlay_candidate.hoverlay_candidate_factory.ccoverlay_candidate_factory.hoverlay_candidate_factory_unittest.ccoverlay_dc_unittest.ccoverlay_processor_delegated.ccoverlay_processor_delegated.hoverlay_processor_interface.hoverlay_processor_mac.ccoverlay_processor_mac.hoverlay_processor_stub.hoverlay_processor_surface_control.ccoverlay_processor_surface_control.hoverlay_processor_surface_control_unittest.ccoverlay_processor_using_strategy.ccoverlay_processor_using_strategy.hoverlay_processor_win.hoverlay_proposed_candidate_unittest.ccoverlay_unittest.ccpending_swap_params.hrenderer_perftest.ccrenderer_pixeltest.ccresolved_frame_data.ccresolved_frame_data.hresolved_frame_data_unittest.ccskia_readback_pixeltest.ccskia_renderer.ccskia_renderer.hsoftware_renderer.ccsoftware_renderer.hsoftware_renderer_unittest.ccsurface_aggregator.ccsurface_aggregator.hsurface_aggregator_perftest.ccsurface_aggregator_pixeltest.ccsurface_aggregator_unittest.ccviz_perftest.ccviz_perftest.h
display_embedder
buffer_queue.himage_context_impl.ccimage_context_impl.houtput_presenter_fuchsia.houtput_presenter_gl.ccskia_output_device.ccskia_output_device.hskia_output_device_buffer_queue.ccskia_output_device_buffer_queue.hskia_output_device_buffer_queue_unittest.ccskia_output_device_dawn.ccskia_output_device_dawn.hskia_output_device_dcomp.ccskia_output_device_dcomp.hskia_output_device_gl.ccskia_output_device_gl.hskia_output_device_offscreen.ccskia_output_device_offscreen.hskia_output_device_vulkan.ccskia_output_device_vulkan.hskia_output_device_vulkan_secondary_cb.ccskia_output_device_vulkan_secondary_cb.hskia_output_device_webview.ccskia_output_device_webview.hskia_output_device_x11.ccskia_output_device_x11.hskia_output_surface_impl.ccskia_output_surface_impl.hskia_output_surface_impl_on_gpu.ccskia_output_surface_impl_on_gpu.hskia_output_surface_impl_on_gpu_debug_capture.cc
frame_sinks
compositor_frame_sink_impl.cccompositor_frame_sink_impl.hcompositor_frame_sink_support.cccompositor_frame_sink_support.hcompositor_frame_sink_support_unittest.ccexternal_begin_frame_source_android.ccexternal_begin_frame_source_android.hexternal_begin_frame_source_mojo.hframe_sink_bundle_impl.hframe_sink_bundle_impl_unittest.ccframe_sink_manager_impl.ccframe_sink_manager_impl.hframe_sink_manager_unittest.ccroot_compositor_frame_sink_impl.ccroot_compositor_frame_sink_impl.hsurface_synchronization_unittest.cc
video_capture
capturable_frame_sink.hframe_sink_video_capturer_impl.ccframe_sink_video_capturer_impl.hframe_sink_video_capturer_impl_unittest.ccvideo_capture_overlay.ccvideo_capture_overlay.hvideo_capture_overlay_unittest.cc
video_detector_unittest.ccgl
hit_test
hit_test_aggregator.cchit_test_aggregator.hhit_test_aggregator_unittest.cchit_test_manager.cchit_test_manager.hhit_test_manager_fuzzer.cc
main
surfaces
surface.ccsurface.hsurface_dependency_deadline.ccsurface_dependency_deadline.hsurface_manager.ccsurface_manager.hsurface_saved_frame.ccsurface_saved_frame.h
transitions
test
web_cache
renderer
web_modal
web_package
input_reader.ccinput_reader.h
signed_web_bundles
ed25519_public_key.hed25519_signature.hintegrity_block_parser.ccintegrity_block_parser.hsigned_web_bundle_id_unittest.ccsigned_web_bundle_signature_verifier.ccsigned_web_bundle_signature_verifier.hsigned_web_bundle_signature_verifier_unittest.cc
test_support
mock_web_bundle_parser.ccmock_web_bundle_parser.hmock_web_bundle_parser_factory.ccmock_web_bundle_parser_factory.h
web_bundle_parser.ccweb_bundle_parser.hweb_bundle_parser_factory.ccweb_bundle_parser_factory.hweb_bundle_parser_factory_unittest.ccweb_bundle_parser_fuzzer.ccweb_bundle_parser_unittest.ccsigned_web_bundles
webapps
browser
android
add_to_homescreen_data_fetcher_unittest.ccambient_badge_manager.ccapp_banner_manager_android.ccshortcut_info.ccshortcut_info.hshortcut_info_unittest.cc
webapk
banners
app_banner_manager.ccapp_banner_settings_helper.ccapp_banner_settings_helper.happ_banner_settings_helper_unittest.cc
installable
services
web_app_origin_association
webauthn
android
core
browser
json
webcrypto
algorithm_dispatch.ccalgorithm_implementation.ccalgorithm_implementation.h
algorithms
aes.ccaes.hecdh.ccecdh_unittest.cchkdf.cchmac.ccpbkdf2.cctest_helpers.cctest_helpers.hx25519.ccx25519.h
jwk.ccwebrtc
webrtc_logging
browser
wifi
winhttp
zoom
zucchini
abs32_utils.ccabs32_utils.habs32_utils_unittest.ccdisassembler.ccdisassembler.hdisassembler_dex.ccdisassembler_ztf.ccdisassembler_ztf.helement_detection.ccelement_detection.helement_detection_unittest.cc
fuzzers
heuristic_ensemble_matcher.ccimage_utils.himposed_ensemble_matcher.ccimposed_ensemble_matcher_unittest.ccintegration_test.ccpatch_writer.hrel32_utils.ccrel32_utils.hrel32_utils_unittest.ccreloc_elf.ccreloc_elf.hreloc_elf_unittest.ccreloc_win32.ccreloc_win32.hreloc_win32_unittest.cctest_reference_reader.cctest_reference_reader.hzucchini_apply.cc@ -4,6 +4,7 @@
|
||||
|
||||
#include "components/safe_search_api/safe_search/safe_search_url_checker_client.h"
|
||||
|
||||
#include <optional>
|
||||
#include <utility>
|
||||
|
||||
#include "base/functional/callback.h"
|
||||
@ -20,7 +21,6 @@
|
||||
#include "services/network/public/cpp/resource_request.h"
|
||||
#include "services/network/public/cpp/shared_url_loader_factory.h"
|
||||
#include "services/network/public/cpp/simple_url_loader.h"
|
||||
#include "third_party/abseil-cpp/absl/types/optional.h"
|
||||
#include "url/url_constants.h"
|
||||
|
||||
namespace safe_search_api {
|
||||
@ -41,7 +41,7 @@ std::string BuildRequestData(const std::string& api_key, const GURL& url) {
|
||||
// Parses a SafeSearch API |response| and stores the result in |is_porn|,
|
||||
// returns true on success. Otherwise, returns false and doesn't set |is_porn|.
|
||||
bool ParseResponse(const std::string& response, bool* is_porn) {
|
||||
absl::optional<base::Value> optional_value = base::JSONReader::Read(response);
|
||||
std::optional<base::Value> optional_value = base::JSONReader::Read(response);
|
||||
if (!optional_value || !optional_value.value().is_dict()) {
|
||||
DLOG(WARNING) << "ParseResponse failed to parse global dictionary";
|
||||
return false;
|
||||
@ -63,8 +63,7 @@ bool ParseResponse(const std::string& response, bool* is_porn) {
|
||||
return false;
|
||||
}
|
||||
const base::Value::Dict& classification_dict = classification_value.GetDict();
|
||||
absl::optional<bool> is_porn_opt =
|
||||
classification_dict.FindBool("pornography");
|
||||
std::optional<bool> is_porn_opt = classification_dict.FindBool("pornography");
|
||||
if (is_porn_opt.has_value())
|
||||
*is_porn = is_porn_opt.value();
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user