0

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:
Arthur Sonzogni
2024-07-31 08:29:04 +00:00
committed by Chromium LUCI CQ
parent e6a3f03829
commit b948e67a9c
486 changed files with 2430 additions and 0 deletions
components
affiliations
android_autofill
apdu
assist_ranker
base32
blocklist
bookmarks
breadcrumbs
browser_ui
photo_picker
browsing_topics
captive_portal
cast_streaming
browser
cbor
cdm
certificate_transparency
commerce
component_updater
content_settings
crash
cronet
crx_file
device_event_log
dom_distiller
domain_reliability
download
drive
embedder_support
enterprise
error_page
external_intents
favicon
favicon_base
feature_engagement
feed
core
feedback
filename_generation
flags_ui
gcm_driver
google
core
grpc_support
gwp_asan
headless
history
history_clusters
input
js_injection
keyed_service
leveldb_proto
lookalikes
media_router
metal_util
metrics
mirroring
nacl
navigation_metrics
net_log
no_state_prefetch
omnibox
open_from_clipboard
openscreen_platform
optimization_guide
os_crypt
page_content_annotations
page_info
page_load_metrics
paint_preview
payments
pdf
permissions
policy
power_metrics
proxy_config
pwg_encoder
qr_code_generator
query_parser
reading_list
reduce_accept_language
remote_cocoa
reporting
safe_browsing
safe_search_api
search_engines
segmentation_platform
services
session_proto_db
sessions
signin
site_engagement
speech
spellcheck
ssl_errors
startup_metric_utils
storage_monitor
subresource_filter
sync_bookmarks
sync_device_info
system_cpu
tracing
translate
trusted_vault
ui_devtools
ukm
update_client
upload_list
url_formatter
url_matcher
url_pattern
url_pattern_index
variations
visitedlink
viz
web_modal
web_package
webapps
webauthn
webcrypto
webrtc
webrtc_logging
wifi
zucchini

@ -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>