spanification: Add #pragma allow_unsafe_buffers
to component/*
See `//docs/unsafe_buffers.md` This is a preparation to fix each files. This CL has no behavior changes. This patch was fully automated using script: https://paste.googleplex.com/5614491201175552 See internal doc about it: https://docs.google.com/document/d/1erdcokeh6rfBqs_h0drHqSLtbDbB61j7j3O2Pz8NH78/edit?resourcekey=0-hNe6w1hYAYyVXGEpWI7HVA&tab=t.0 AX-Relnotes: n/a. Bug: 40285824 Change-Id: I24ff0aee7a6cbe6da11a08830135449ccf8f2ae2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5717711 Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org> Auto-Submit: Arthur Sonzogni <arthursonzogni@chromium.org> Reviewed-by: Cait Phillips <caitkp@chromium.org> Cr-Commit-Position: refs/heads/main@{#1335315}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
e6a3f03829
commit
b948e67a9c
components
affiliations
android_autofill
browser
apdu
assist_ranker
base32
blocklist
opt_out_blocklist
bookmarks
browser
breadcrumbs
browser_ui
photo_picker
android
browsing_topics
captive_portal
cast_streaming
browser
frame
cbor
cdm
certificate_transparency
commerce
content
browser
core
product_specifications
component_updater
installer_policies
content_settings
core
crash
android
content
browser
core
cronet
crx_file
device_event_log
dom_distiller
domain_reliability
download
internal
drive
embedder_support
android
enterprise
browser
reporting
error_page
external_intents
android
favicon
favicon_base
feature_engagement
feed
core
v2
feedback
filename_generation
flags_ui
gcm_driver
crypto
google
core
common
grpc_support
gwp_asan
client
guarded_page_allocator.ccguarded_page_allocator_unittest.cc
lightweight_detector
sampling_malloc_shims.ccsampling_malloc_shims_unittest.ccsampling_partitionalloc_shims_unittest.cccommon
allocator_state.ccextreme_lightweight_detector_util.hlightweight_detector_state.ccpack_stack_trace.ccpack_stack_trace_differential_fuzzer.ccpack_stack_trace_unpack_fuzzer.cc
crash_handler
headless
history
content
core
history_clusters
input
js_injection
renderer
keyed_service
leveldb_proto
lookalikes
media_router
common
providers
cast
metal_util
metrics
field_trials_provider_unittest.ccfile_metrics_provider.ccfile_metrics_provider_unittest.ccpersistent_system_profile.cc
serialization
unsent_log_store.ccmirroring
service
nacl
browser
loader
nacl_helper_linux.ccnacl_ipc_adapter.ccnacl_ipc_adapter_unittest.ccnacl_listener.ccnacl_validation_query.cc
renderer
zygote
navigation_metrics
net_log
no_state_prefetch
omnibox
browser
autocomplete_input.ccautocomplete_input_unittest.ccautocomplete_match.ccautocomplete_match_type.ccautocomplete_provider_unittest.ccautocomplete_result_unittest.ccbookmark_provider.ccbookmark_provider_unittest.ccbuiltin_provider_unittest.ccfeatured_search_provider_unittest.cchistory_fuzzy_provider.cchistory_fuzzy_provider_unittest.cchistory_quick_provider_performance_unittest.cchistory_quick_provider_unittest.cchistory_url_provider_unittest.ccin_memory_url_index_types_unittest.ccin_memory_url_index_unittest.cckeyword_provider_unittest.ccomnibox_edit_model_unittest.ccomnibox_view_unittest.ccon_device_head_model.ccon_device_tail_model_executor.ccscored_history_match.ccshortcuts_backend_unittest.ccshortcuts_database_unittest.ccshortcuts_provider_test_util.cc
open_from_clipboard
openscreen_platform
optimization_guide
core
os_crypt
page_content_annotations
page_info
page_load_metrics
browser
paint_preview
common
player
android
javatests
payments
pdf
permissions
permission_auditing_database_unittest.ccpermission_auditing_service_unittest.ccpermission_decision_auto_blocker.cc
policy
core
browser
common
cloud
cloud_policy_client_unittest.cccloud_policy_validator.ccexternal_policy_data_fetcher_unittest.ccexternal_policy_data_updater_unittest.ccresource_cache.cc
config_dir_policy_loader.ccgenerate_policy_source_unittest.ccpolicy_merger.ccpolicy_service_impl.ccregistry_dict.ccschema.ccschema_registry.ccschema_unittest.cctest
power_metrics
energy_impact_mac.mmenergy_impact_mac_unittest.mmenergy_metrics_provider_linux.ccenergy_metrics_provider_win.ccresource_coalition_mac.mmresource_coalition_mac_unittest.mm
proxy_config
pwg_encoder
qr_code_generator
query_parser
reading_list
reduce_accept_language
remote_cocoa
app_shim
reporting
encryption
metrics
resources
storage
legacy_storage_unittest.ccstorage_base.ccstorage_queue.ccstorage_unittest.ccstorage_uploader_interface.cc
util
safe_browsing
android
content
core
safe_search_api
search_engines
search_engine_countries-inc.ccsearch_engine_utils.ccsite_search_policy_handler_unittest.cctemplate_url_data_util.cctemplate_url_prepopulate_data.cctemplate_url_prepopulate_data_unittest.cctemplate_url_service.cctemplate_url_unittest.cc
segmentation_platform
embedder
default_model
internal
services
app_service
public
cpp
filesystem
font
heap_profiling
paint_preview_compositor
storage
session_proto_db
sessions
signin
core
internal
identity_manager
public
site_engagement
content
speech
spellcheck
browser
renderer
ssl_errors
startup_metric_utils
browser
storage_monitor
subresource_filter
core
tools
rule_parser
sync_bookmarks
sync_device_info
system_cpu
tracing
common
translate
content
android
core
trusted_vault
ui_devtools
ukm
update_client
upload_list
url_formatter
url_matcher
url_pattern
url_pattern_index
variations
entropy_provider_unittest.cchashing_unittest.cc
service
study_filtering_unittest.ccvariations_seed_processor_unittest.ccvisitedlink
browser
renderer
test
viz
client
common
frame_sinks
quads
aggregated_render_pass_draw_quad.cccompositor_render_pass_draw_quad.ccdraw_quad.ccdraw_quad.hrender_pass_draw_quad_internal.ccrender_pass_draw_quad_internal.hrender_pass_io.cctexture_draw_quad.cctexture_draw_quad.htile_draw_quad.cctile_draw_quad.hyuv_video_draw_quad.ccyuv_video_draw_quad.h
resources
viz_utils.ccyuv_readback_unittest.ccdemo
client
service
debugger
viz_debugger.cc
viz_debugger_unittests
display
bsp_tree_unittest.cccopy_output_scaling_pixeltest.ccdelegated_ink_trail_data.ccdisplay_resource_provider_skia_unittest.ccdisplay_unittest.ccdraw_polygon.ccframe_rate_decider_unittest.ccocclusion_culler_unittest.ccoverlay_processor_ozone.ccoverlay_processor_using_strategy.ccoverlay_unittest.ccreadback_pixeltest.ccrenderer_perftest.ccrenderer_pixeltest.ccskia_renderer.ccsurface_aggregator_unittest.cc
display_embedder
frame_sinks
test
web_modal
web_package
webapps
browser
webauthn
webcrypto
webrtc
webrtc_logging
wifi
zucchini
binary_data_histogram_unittest.ccbuffer_source.ccbuffer_source_unittest.ccbuffer_view.hbuffer_view_unittest.cccrc32.cccrc32_unittest.ccdisassembler_dex.ccdisassembler_elf.ccdisassembler_win32.ccdisassembler_ztf.ccelement_detection.ccexception_filter_helper_win.ccexception_filter_helper_win_unittest.cc
fuzzers
image_utils.hio_utils.hpatch_utils.hrel32_finder.ccrel32_finder_unittest.ccrel32_utils.hreloc_win32.ccsuffix_array.htest_disassembler.cczucchini_apply.cczucchini_commands.cczucchini_integration.cc@ -2,6 +2,11 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifdef UNSAFE_BUFFERS_BUILD
|
||||
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
|
||||
#pragma allow_unsafe_buffers
|
||||
#endif
|
||||
|
||||
#include "components/safe_search_api/safe_search/safe_search_url_checker_client.h"
|
||||
|
||||
#include <memory>
|
||||
|
@ -2,6 +2,11 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifdef UNSAFE_BUFFERS_BUILD
|
||||
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
|
||||
#pragma allow_unsafe_buffers
|
||||
#endif
|
||||
|
||||
#include "components/safe_search_api/url_checker.h"
|
||||
|
||||
#include <stddef.h>
|
||||
|
Reference in New Issue
Block a user