0
Commit Graph

1741 Commits

Author SHA1 Message Date
Andrew Rayskiy
7ae2b5d135 iwa: Guard IWA-KD component by features::kIsolatedWebApps on Windows
These two features will be launched together anyway; this reshuffle aims
to simplify the testing process.

This CL also scopes the kIwaKeyDistributionComponent feature visibility
on about://flags to MacOS and Linux.

Bug: 399048404
Change-Id: I73146e05ee5d7f791242ffbf11d9cb5fc233183c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6298259
Reviewed-by: Joshua Pawlicki <waffles@chromium.org>
Reviewed-by: Simon Hangl <simonha@google.com>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Commit-Queue: Andrew Rayskiy <greengrape@google.com>
Cr-Commit-Position: refs/heads/main@{#1426374}
2025-02-28 08:59:38 -08:00
Georg Neis
a7f94e6a93 Remove IS_CHROMEOS_LACROS build flag
All uses are gone.

Bug: b:354842935, b:365742770, 373971535
Change-Id: If52381bcab05853ff5db6feca5449ce87d7943d7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6299673
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
Reviewed-by: Dominic Battré <battre@chromium.org>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1426148}
2025-02-27 23:01:48 -08:00
Riley Wong
49be8a887f Fix re compilation of presubmit.py
Some presubmit regex needs to be escaped by r,
otherwise python can not compile them.

Python 3.12 has mad these into warnings and they're flooding
the presubmit messages.

Bug: 397963615
Change-Id: I5ddcb9cf1744438d163e6b25636e6861e665d7bd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6305727
Reviewed-by: Dirk Pranke <dpranke@google.com>
Reviewed-by: Gary Tong <gatong@chromium.org>
Commit-Queue: Riley Wong <rgw@google.com>
Cr-Commit-Position: refs/heads/main@{#1425455}
2025-02-26 16:38:23 -08:00
Dirk Pranke
e4df279796 Fix invalid regexp escape sequences in //PRESUBMIT.py.
Python 3.12 emits warnings if you use an unrecognized escape sequence
in a string. There were many occurrences of '\.' in PRESUBMIT.py, so
this fixes them.

Change-Id: Ibd07c56eaa6231965c75a943ade567bc8395679a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6278091
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Dirk Pranke <dpranke@google.com>
Cr-Commit-Position: refs/heads/main@{#1425265}
2025-02-26 10:39:35 -08:00
Jenna Himawan
859865d196 [a11y] Presubmit ban disruptive a11y announcements
Ban announceForAccessibility and TYPE_ANNOUNCEMENT, deprecated in
Baklava (Android 16).

Fixed: 376759129
Test: PRESUBMIT_test.py
Change-Id: I55b9e8f77d5ec4cb865da94f230a3c57d4bcf4e8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6301847
Commit-Queue: Jenna Himawan <jhimawan@google.com>
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Lijin Shen <lazzzis@google.com>
Cr-Commit-Position: refs/heads/main@{#1424803}
2025-02-25 14:22:31 -08:00
Erik Chen
e89ebe3e2c Add ban rule for CreateBrowserWithTestWindow
This is a variant of TestWithBrowserView.

Bug: 384547121
Change-Id: Iabff08ccc30c2e8ce452f8e467a794ca84445b12
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6292356
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Erik Chen <erikchen@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1423521}
2025-02-21 18:46:49 -08:00
Tom Sepez
d3272cd6cb Add a presubmit rule for subspan(0u, n).
Using first(n) is shorter and can give better code in most cases.

Change-Id: I10747631af5f2d9d18fc57b5e25d49e99b83b377
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6288446
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1423283}
2025-02-21 11:11:31 -08:00
Tom Sepez
8e6285871f Use more precise regex in PRESUBMIT.py CheckTodoBugReferences().
Avoid matching TODO(nnnnnnnn) against UNSAFE_TODO(expr).

Change-Id: I118ee3f2a01f1d0b70aa0c752667fd03b1cb3f0a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6265826
Reviewed-by: Alison Gale <agale@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1420255}
2025-02-13 18:18:55 -08:00
dpapad
fd421fb7d6 Update CheckForWindowsLineEndings to check JS/TS/CSS/HTML/SVG files.
Bug: None
Change-Id: Ic74cbf5585bf17b7f6b565878c28c81b4b3ca22d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6256276
Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org>
Auto-Submit: Demetrios Papadopoulos <dpapad@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Cr-Commit-Position: refs/heads/main@{#1419624}
2025-02-12 16:47:32 -08:00
Shuai Xia
0d99ebfdaa Add "Predator-For-Me" to the list of robots.
See https://source.chromium.org/chromium/infra/infra_superproject/+/main:infra/appengine/predator/README.md for more information about the project.

Change-Id: Ib85f57d5e6e4ddc20121a58720df39a112a35074
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6249486
Reviewed-by: Dominic Battré <battre@chromium.org>
Commit-Queue: Shuai Xia <shuaixia@google.com>
Reviewed-by: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1418963}
2025-02-11 15:47:59 -08:00
Anton Bershanskyi
425334948d [Presubmit] Standardize paths in PRESUBMIT.py on Windows
Windows uses back slash \ as a path separator while other OSes use
forward slash. CL 6236404 introduced depot_tools AffectedFile.UnixLocalPath()
which provides a UNIX-style platform-independent path on all systems.
This CL updates PRESUBMIT.py to take advantage of this new method.

Bug: None
Change-Id: Iccd71ccb5192ff56efbc822dc2ae52304b61f778
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6218309
Commit-Queue: Anton Bershanskyi <bershanskyi@gmail.com>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Cr-Commit-Position: refs/heads/main@{#1418864}
2025-02-11 13:01:27 -08:00
Andrew Grieve
851a7be79e Android: Remove Mockito.mock() R8 work-arounds
R8 now natively supports tracing of Mockito.mock() and Mockito.spy()

Bug: 389166093
Change-Id: Iffa791d1af203f621130f247fa995f038df9d6ac
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6226560
Reviewed-by: Sam Maier <smaier@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Owners-Override: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1418690}
2025-02-11 08:41:01 -08:00
Peter Boström
5460a95638 Clean up base::debug::DumpWithoutCrashing variants
This also removes a few direct calls from ash into
crash_reporter::DumpWithoutCrashing() which bypasses setting
crash-location keys. These may (but probably unlikely) be why we're
seeing a few bad-stack DWCs without location keys set.

Bug: 386552744
Change-Id: Id7f3e3a52a12decf2a8a7a75f3de047c3c1f3f1e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6246294
Commit-Queue: Peter Boström <pbos@chromium.org>
Owners-Override: Peter Kasting <pkasting@chromium.org>
Auto-Submit: Peter Boström <pbos@chromium.org>
Reviewed-by: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1417969}
2025-02-09 21:07:59 -08:00
Evan Stade
23a77dae52 Fix protobuf exception for IPC message presubmit check.
Bug: 328417294
Change-Id: Ib3d5e307cb6e0b4aa39e0ce1d29a9c477a6e3bd0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6237095
Reviewed-by: Shibalik Mohapatra <shibalik@chromium.org>
Owners-Override: Shibalik Mohapatra <shibalik@chromium.org>
Commit-Queue: Shibalik Mohapatra <shibalik@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1416984}
2025-02-06 13:15:31 -08:00
Georg Neis
e5817ebe06 infra: Remove references to obsolete Lacros roller accounts
Lacros is gone.

Bug: b:370356213
Change-Id: Ib6daefe12fc2ce2f0974ea30037d26c827b99ea2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6228735
Reviewed-by: Kuan Huang <kuanhuang@chromium.org>
Commit-Queue: Erik Staab <estaab@chromium.org>
Auto-Submit: Georg Neis <neis@chromium.org>
Reviewed-by: Erik Staab <estaab@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1416584}
2025-02-05 19:47:31 -08:00
Andrew Grieve
170b978564 Android: Make R8 and TraceReferences separate build steps
On this CQ job, Proguard took 2:45, and the subsequent tracerefernces
step took 15s. So, locally, this should save 10-15s for devs needing
to enable proguard.

Bug: 371461396
Change-Id: I7de30efd388a294d020cff4460055251369dde23
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6221598
Reviewed-by: Sam Maier <smaier@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1414931}
2025-02-03 07:54:53 -08:00
Manish Goregaokar
dc9e3511f7 Exclude Rust crates from TODO check
Change-Id: Id01bae537fe6547824a3872dc8e3827dd7f0192e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6223536
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Łukasz Anforowicz <lukasza@chromium.org>
Commit-Queue: Manish Goregaokar <manishearth@google.com>
Auto-Submit: Manish Goregaokar <manishearth@google.com>
Cr-Commit-Position: refs/heads/main@{#1414918}
2025-02-03 07:30:58 -08:00
AbdAlRahman Gad
1ae83b4a9e [cleanup] Remove some std::to_string usages
Signed-off-by: AbdAlRahman Gad <abdobngad@gmail.com>
Bug: 335672557
Change-Id: I0f51870b92b52e8bf01742abe3511e9a678ff02b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6197234
Reviewed-by: Rick Byers <rbyers@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1413276}
2025-01-29 18:32:14 -08:00
Peter Kasting
3b811ffd3c Remove base/ranges/.
Bug: 386918226
Change-Id: If9ebb8ca5677985565f30df0aaf1ce4d6c91e347
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6215440
Owners-Override: Lei Zhang <thestig@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1413176}
2025-01-29 14:20:16 -08:00
Andrew Grieve
2d972e5f19 Android: Add <permission> elements to Stub APKs
Bug: 392312800
Change-Id: I5069cf94a4b752f3acfcad153e72bb435feb6753
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6207474
Reviewed-by: Mohamed Heikal <mheikal@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1412402}
2025-01-28 10:28:14 -08:00
Mark Pearson
63204dad1a Revert "Add presubmit check to prevent anonymous namespace usage in headers"
This reverts commit ba1e976cd9.

Reason for revert:
Causes failures on win-presubmit bot, starting here when it landed:
https://ci.chromium.org/ui/p/chromium/builders/ci/win-presubmit/11338/overview

It seems the existing problems in the repository were not cleaned up before landing this new check.

Full error message:
===
These files have an anonymous namespace which is not permitted in header files, for more information see (https://google.github.io/styleguide/cppguide.html#Internal_Linkage): 
  ash\accelerators\ash_accelerator_configuration.h
  ash\accessibility\ui\accessibility_confirmation_dialog.h
  ash\ambient\test\ambient_ash_test_base.h
  ash\glanceables\classroom\fake_glanceables_classroom_client.h
  ash\hud_display\hud_settings_view.h
  ash\lobster\lobster_image_actuator.h
  ash\login\ui\lock_contents_view_constants.h
  ash\login\ui\lock_screen_media_view.h
  ash\system\accessibility\dictation_bubble_view.h
  ash\system\diagnostics\fake_diagnostics_browser_delegate.h
  ash\system\focus_mode\focus_mode_chip_carousel.h
  ash\system\focus_mode\focus_mode_detailed_view.h
  ash\system\media\quick_settings_media_view.h
  ash\system\network\fake_network_detailed_view_delegate.h
  ash\system\network\network_detailed_network_view.h
  ash\system\notification_center\notification_grouping_controller.h
  ash\system\power\power_sounds_controller.h
  ash\system\time\calendar_model.h
  ash\system\time\calendar_unittest_utils.h
  ash\webui\eche_app_ui\accessibility_tree_converter.h
  ash\webui\help_app_ui\search\search_handler.h
  ash\webui\shortcut_customization_ui\backend\accelerator_layout_table.h
  base\allocator\miracle_parameter.h
  base\allocator\partition_allocator\src\partition_alloc\shim\allocator_shim_override_apple_default_zone.h
  base\allocator\partition_allocator\src\partition_alloc\shim\allocator_shim_override_glibc_weak_symbols.h
  base\allocator\partition_allocator\src\partition_alloc\shim\allocator_shim_override_ucrt_symbols_win.h
  base\allocator\partition_allocator\src\partition_alloc\shim\shim_alloc_functions.h
  base\memory\safety_checks.h
  base\task\lazy_thread_pool_task_runner.h
  base\task\thread_pool\pooled_single_thread_task_runner_manager.h
  base\test\fuzztest_support.h
  base\time\time.h
  chrome\browser\accessibility\live_caption\live_caption_speech_recognition_host_browsertest.h
  chrome\browser\android\metrics\android_session_durations_service.h
  chrome\browser\ash\app_list\search\arc\arc_app_shortcut_search_result.h
  chrome\browser\ash\app_restore\app_restore_arc_task_handler.h
  chrome\browser\ash\arc\instance_throttle\arc_active_window_throttle_observer.h
  chrome\browser\ash\file_manager\trash_io_task.h
  chrome\browser\ash\guest_os\vm_sk_forwarding_native_message_host.h
  chrome\browser\ash\lobster\lobster_insertion.h
  chrome\browser\ash\login\existing_user_controller_base_test.h
  chrome\browser\ash\login\test\feature_parameter_interface.h
  chrome\browser\ash\policy\skyvault\test\skyvault_test_utils.h
  chrome\browser\ash\smb_client\smb_service_test_base.h
  chrome\browser\ash\system_web_apps\apps\personalization_app\keyboard_backlight_color_metrics_provider.h
  chrome\browser\chromeos\extensions\telemetry\api\events\event_router.h
  chrome\browser\extensions\api\messaging\native_message_echo_host.h
  chrome\browser\extensions\context_menu_helpers.h
  chrome\browser\media\prefs\capture_device_ranking.h
  chrome\browser\metrics\chrome_metrics_service_accessor.h
  chrome\browser\metrics\structured\chrome_structured_metrics_delegate.h
  chrome\browser\metrics\structured\metadata_processor_ash.h
  chrome\browser\nearby_sharing\wifi_network_configuration\fake_wifi_network_configuration_handler.h
  chrome\browser\page_load_metrics\observers\third_party_cookie_deprecation_page_load_metrics_observer.h
  chrome\browser\password_manager\password_change_delegate_impl.h
  chrome\browser\performance_manager\decorators\helpers\page_live_state_decorator_helper.h
  chrome\browser\permissions\crowd_deny_preload_data.h
  chrome\browser\persisted_state_db\session_proto_db_factory.h
  chrome\browser\profile_resetter\profile_resetter.h
  chrome\browser\push_messaging\push_messaging_service_impl.h
  chrome\browser\screen_ai\public\optical_character_recognizer.h
  chrome\browser\screen_ai\screen_ai_service_router.h
  chrome\browser\ui\ash\wallpaper\wallpaper_controller_client_impl.h
  chrome\browser\ui\cocoa\history_menu_bridge.h
  chrome\browser\ui\global_media_controls\media_item_ui_metrics.h
  chrome\browser\ui\passwords\manage_passwords_ui_controller.h
  chrome\browser\ui\performance_controls\performance_intervention_button_controller.h
  chrome\browser\ui\performance_controls\test_support\memory_saver_browser_test_mixin.h
  chrome\browser\ui\safety_hub\abusive_notification_permissions_manager.h
  chrome\browser\ui\safety_hub\menu_notification_service.h
  chrome\browser\ui\signin\signin_view_controller.h
  chrome\browser\ui\views\desktop_capture\desktop_media_tab_list.h
  chrome\browser\ui\views\frame\picture_in_picture_browser_frame_view.h
  chrome\browser\ui\views\global_media_controls\media_item_ui_cast_footer_view.h
  chrome\browser\ui\views\global_media_controls\media_item_ui_device_selector_view.h
  chrome\browser\ui\views\global_media_controls\media_item_ui_footer_view.h
  chrome\browser\ui\views\site_data\page_specific_site_data_dialog.h
  chrome\browser\ui\views\web_apps\frame_toolbar\web_app_frame_toolbar_view.h
  chrome\browser\ui\web_applications\sub_apps_service_impl.h
  chrome\browser\ui\web_applications\test\isolated_web_app_test_utils.h
  chrome\browser\ui\webui\ash\diagnostics_dialog\diagnostics_dialog.h
  chrome\browser\ui\webui\ash\login\consolidated_consent_screen_handler.h
  chrome\browser\ui\webui\ash\sanitize_dialog\sanitize_dialog.h
  chrome\browser\ui\webui\ash\settings\pages\apps\mojom\app_type_mojom_traits.h
  chrome\browser\web_applications\isolated_web_apps\isolated_web_app_update_manager.h
  chrome\browser\web_applications\preinstalled_web_app_manager.h
  chrome\common\read_anything\read_anything_constants.h
  chrome\test\base\ash\web_ui_browser_test.h
  chrome\test\base\chromeos\crosier\chromeos_integration_login_mixin.h
  chrome\updater\app\server\win\com_classes_legacy.h
  chromecast\media\base\aligned_buffer.h
  chromeos\ash\components\assistant\test_support\expect_utils.h
  chromeos\ash\components\carrier_lock\psm_claim_verifier_unittest.h
  chromeos\ash\components\game_mode\game_mode_controller.h
  chromeos\ash\components\nearby\presence\nearby_presence_service_impl.h
  chromeos\ash\components\phonehub\fake_multidevice_feature_access_manager.h
  chromeos\ash\components\phonehub\phone_hub_structured_metrics_logger.h
  chromeos\ash\components\string_matching\prefix_matcher.h
  chromeos\ash\components\string_matching\sequence_matcher.h
  chromeos\ash\experiences\arc\arc_browser_context_keyed_service_factory_base.h
  chromeos\ash\experiences\arc\metrics\arc_daily_metrics.h
  chromeos\ash\experiences\arc\window\arc_window_watcher.h
  chromeos\ash\services\quick_pair\public\mojom\fast_pair_traits.h
  components\autofill\ios\browser\form_suggestion_provider_query.h
  components\background_sync\background_sync_metrics.h
  components\commerce\core\product_specifications\product_specifications_set.h
  components\commerce\core\test_utils.h
  components\crash\core\common\crash_key.h
  components\discardable_memory\service\discardable_shared_memory_manager.h
  components\endpoint_fetcher\endpoint_fetcher.h
  components\exo\wayland\clients\test\client_version_test.h
  components\exo\wayland\compatibility_test\wayland_client_event_receiver_version_fixtures.h
  components\exo\wayland\wayland_dmabuf_feedback_manager.h
  components\feed\core\v2\public\ios\info_card_tracker.h
  components\global_media_controls\public\views\media_item_ui_detailed_view.h
  components\gwp_asan\client\thread_local_random_bit_generator.h
  components\leveldb_proto\internal\proto_database_impl.h
  components\leveldb_proto\testing\fake_db.h
  components\live_caption\views\caption_bubble.h
  components\metrics\structured\delegating_events_processor.h
  components\metrics\structured\events_processor_interface.h
  components\metrics\structured\recorder.h
  components\optimization_guide\core\model_handler.h
  components\optimization_guide\core\tflite_model_executor.h
  components\session_proto_db\session_proto_db.h
  components\unexportable_keys\unexportable_key_service_impl.h
  components\update_client\background_downloader_mac.h
  components\viz\service\debugger\viz_debugger.h
  content\browser\accessibility\web_contents_accessibility_android.h
  content\browser\back_forward_cache_test_util.h
  content\browser\background_sync\background_sync_base_browsertest.h
  content\browser\bluetooth\advertisement_client.h
  content\browser\client_hints\critical_client_hints_throttle.h
  content\browser\locks\lock_manager.h
  content\browser\presentation\presentation_test_utils.h
  content\browser\tracing\trace_report\trace_report_mojom_traits.h
  content\public\browser\sms_fetcher.h
  content\public\browser\storage_notification_service.h
  device\bluetooth\floss\exported_callback_manager.h
  extensions\browser\api\storage\settings_namespace.h
  gpu\ipc\client\gpu_context_tests.h
  media\base\eme_constants.h
  media\base\mock_media_log.h
  media\base\use_after_free_checker.h
  media\capture\video\mac\video_capture_device_decklink_mac.h
  media\cdm\cdm_wrapper.h
  media\device_monitors\device_monitor_mac.h
  media\formats\hls\types.h
  media\gpu\chromeos\shaders\shaders.h
  media\gpu\v4l2\mt21\mt21_util.h
  media\gpu\v4l2\v4l2_jpeg_encode_accelerator.h
  media\renderers\win\media_foundation_stream_wrapper.h
  native_client_sdk\src\examples\api\video_decode\testdata.h
  net\cert\internal\cert_issuer_source_sync_unittest.h
  net\cert\root_cert_list_generated.h
  net\cookies\cookie_store_change_unittest.h
  net\dns\stale_host_resolver.h
  net\nqe\socket_watcher.h
  net\nqe\socket_watcher_factory.h
  net\nqe\throughput_analyzer.h
  net\quic\quic_proxy_client_socket_test_base.h
  net\ssl\client_cert_store_unittest-inl.h
  net\tools\huffman_trie\huffman\huffman_builder.h
  net\traffic_annotation\network_traffic_annotation.h
  ppapi\cpp\input_event_interface_name.h
  ppapi\cpp\module_impl.h
  ppapi\examples\video_decode\testdata.h
  ppapi\tests\test_udp_socket.h
  sandbox\win\src\crosscall_params.h
  sandbox\win\src\process_thread_interception.h
  services\device\generic_sensor\orientation_test_data.h
  testing\multiprocess_func_list.h
  third_party\blink\renderer\bindings\core\v8\iterable.h
  third_party\blink\renderer\core\editing\finder\find_task_controller.h
  third_party\blink\renderer\core\layout\grid\grid_data.h
  third_party\blink\renderer\core\loader\document_loader.h
  third_party\blink\renderer\modules\canvas\canvas2d\base_rendering_context_2d.h
  third_party\blink\renderer\modules\compute_pressure\pressure_observer.h
  third_party\blink\renderer\platform\geometry\math_functions.h
  third_party\blink\renderer\platform\peerconnection\webrtc_connection_matchers.h
  third_party\blink\renderer\platform\scheduler\public\frame_or_worker_scheduler.h
  third_party\blink\renderer\platform\text\emoji_segmentation_category_inline_header.h
  tools\win\chromeexts\chrome_exts_command.h
  ui\accessibility\platform\fuchsia\semantic_provider_impl.h
  ui\base\class_property.h
  ui\base\clipboard\clipboard_test_template.h
  ui\events\fuchsia\util\pointer_event_utility.h
  ui\events\ozone\device\device_event.h
  ui\events\velocity_tracker\velocity_tracker.h
  ui\gfx\animation\keyframe\keyframed_animation_curve-inl.h
  ui\gfx\mojom\rrect_f_mojom_traits.h
  ui\gfx\mojom\selection_bound_mojom_traits.h
  ui\gl\delegated_ink_point_renderer_gpu.h
  ui\gl\gl_enums_implementation_autogen.h
  ui\webui\resources\cr_components\app_management\app_management_mojom_traits.h
===

which I got by copying and pasting from
https://logs.chromium.org/logs/chromium/buildbucket/cr-buildbucket/8724556290967808561/+/u/presubmit/stdout

Original change's description:
> Add presubmit check to prevent anonymous namespace usage in headers
>
> Bug: 391905435
> Change-Id: I928d282bc3b626addc564889338cb7426e7cbe4c
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6192789
> Commit-Queue: Aaron Selya <selya@google.com>
> Reviewed-by: Andrew Grieve <agrieve@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1411842}

Bug: 391905435
Change-Id: I8753a2777b650bf5716c6364b3ba160c503a236e
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6203269
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Mark Pearson <mpearson@chromium.org>
Auto-Submit: Mark Pearson <mpearson@chromium.org>
Owners-Override: Mark Pearson <mpearson@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1411949}
2025-01-27 15:42:09 -08:00
Erik Chen
1396bbe886 Add ban rule for anonymous namespaces in header files.
See discussion at
https://groups.google.com/a/chromium.org/g/chromium-dev/c/qgUGhXjCFrs/m/QoVu31ClDQAJ

Change-Id: Ie54f9614075402dda481d4ef74fad157510042f8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6197921
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Erik Chen <erikchen@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1411947}
2025-01-27 15:39:36 -08:00
selya
ba1e976cd9 Add presubmit check to prevent anonymous namespace usage in headers
Bug: 391905435
Change-Id: I928d282bc3b626addc564889338cb7426e7cbe4c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6192789
Commit-Queue: Aaron Selya <selya@google.com>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1411842}
2025-01-27 12:55:25 -08:00
Andrew Grieve
651ddb3e98 Android: Split out errorprone.py from compile_java.py
Siso uses script name to partition when commands should be run remotely
vs locally, so this makes it possible.

There is also a lot of errorprone-specific logic, so it's more organized
to have it in a separate script.

Bug: 391114802
Change-Id: Ib1eecfd6dd473e4f721d7c16c9c17270ddb72cbf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6191108
Reviewed-by: Mohamed Heikal <mheikal@chromium.org>
Reviewed-by: Junji Watanabe <jwata@google.com>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1410095}
2025-01-22 19:27:34 -08:00
Terrence Reilly
313f44ff32 Fix tools/translation/upload_screenshots.py for Cog.
Git isn't available in Cog, and so when searching for grd files, we can't do a `git ls-files -- *.grd`.  Previously, we tried walking the repo to find all instances of _.grd_ files.  However, that meant that we were listing _.grd_ files in submodules, which we don't want.

Instead, we'll just skip the checks which involve _.grd_ file paths which are added to the repo but not added to the expectations file.  Since presubmits run in CQ, this shouldn't result in invalid repo states.  It's just a bit inconvenient in that edge case.

Alternatives considered:

- Use the grds present in the expectations files.
  - This is possible, but is equivalent to the current implementation.  (Effectively, we'd be saying that the expectation file is equivalent to the expectation file.)
- Make an RPC call to simulate the git ls-files result.
  - This would require getting the correct credentials, and would make the implementation significantly more complex.

For unit tests, I've added a new test data file for each test case involving Cog.  While we could have each of the missing files in one test data file, doing so would enforce the order errors are added to the list of errors.  So having a separate check for each is less prone to toil if the implementation is changed.

Change-Id: I5552185b817eb4bf962b23d2d6fad15ad9ddc020
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6177203
Reviewed-by: Mustafa Emre Acer <meacer@chromium.org>
Commit-Queue: Terrence Reilly <treilly@google.com>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Cr-Commit-Position: refs/heads/main@{#1409647}
2025-01-22 07:10:14 -08:00
Maksim Sisov
34bfc576d6 Clarify PRESUBMIT message for Lacros deprecation
The Lacros platform is deprecated, and its associated code is being removed. Previously, the PRESUBMIT script was updated to recommend transitioning to the IS_CHROMEOS build flag

However, this change introduced ambiguity, leading to the misinterpretation that IS_CHROMEOS_LACROS should be renamed to IS_CHROMEOS alongside the IS_CHROMEOS_ASH build flag.

This CL refines the PRESUBMIT message to clearly state:
1) Code under IS_CHROMEOS_LACROS must be removed.
2) The IS_CHROMEOS_ASH build flag should be renamed to IS_CHROMEOS.

This update aims to eliminate confusion and provide precise guidance during the
deprecation process.

Bug: 388039763
Change-Id: I0cdd7a788da220ecca17f021a1597d2c41b2c05f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6169131
Reviewed-by: Hidehiko Abe <hidehiko@chromium.org>
Reviewed-by: Rick Byers <rbyers@chromium.org>
Commit-Queue: Maksim Sisov <msisov@igalia.com>
Reviewed-by: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1405919}
2025-01-13 23:03:12 -08:00
Peter Kasting
5fdcd78b61 Ban std::aligned_storage and std::aligned_union.
Also removes nearby PRESUBMIT warning about QuitCurrent, which is long
gone.

Bug: 388068052
Change-Id: I3ec05ecc77331336723f839107e491eedfaf2128
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6172569
Commit-Queue: Rick Byers <rbyers@chromium.org>
Reviewed-by: Rick Byers <rbyers@chromium.org>
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1405502}
2025-01-13 06:57:07 -08:00
Peter Kasting
f379c02652 More std::ranges compatibility fixes: third_party/blink/
Bug: 386918226
Change-Id: I1742f144583716b76fe26833f4751d4a217a384b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6164522
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1405479}
2025-01-13 06:01:00 -08:00
Hidehiko Abe
5160181a4f Move ash/components/arc to chromeos/ash/experiences/arc Part 4.
This CL moves ash/components/arc/[n-s].* directories.

BUG=386148857
TEST=Tryjob

Change-Id: I9007732a6a847e57337495111fcfc7790ed85591
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6166689
Reviewed-by: Hugo Benichi <hugobenichi@google.com>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Reviewed-by: Rouslan Solomakhin <rouslan@chromium.org>
Commit-Queue: Hidehiko Abe <hidehiko@chromium.org>
Reviewed-by: Mitsuru Oshima <oshima@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1405294}
2025-01-12 08:17:35 -08:00
Wenyu Fu
0005ab85ac Fix typo for wrong_robolectric_test_runner_errors
It should be BaseRobolectricTestRunner, not BaseRobolectricTestRule

Change-Id: Ida88eac8b20dde3d22eab5e8817b001b9e8c71f2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6139890
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Auto-Submit: Wenyu Fu <wenyufu@chromium.org>
Commit-Queue: Wenyu Fu <wenyufu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1401874}
2025-01-03 10:13:26 -08:00
Andrew Grieve
acac4244d3 Android: Add a depfile to bytecode_processor.py and rename it
New name: check_for_missing_direct_deps.py

Bug: 40748103
Change-Id: I667d3de8c5b32cd5f34ec5a1b49ae098b5a95470
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6108094
Reviewed-by: Peter Wen <wnwen@chromium.org>
Commit-Queue: Peter Wen <wnwen@chromium.org>
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1399307}
2024-12-20 11:39:42 -08:00
Andrew Grieve
5a66ae7641 Add a PRESUBMIT to ensure Robolectric tests use BaseRobolectricTestRunner
Bug: 383779576
Change-Id: Ica45a4591554acb2ff2f1c7f658185de0353ca5f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6092006
Commit-Queue: Yaron Friedman <yfriedman@chromium.org>
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Yaron Friedman <yfriedman@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1395951}
2024-12-13 07:21:53 -08:00
Greg Thompson
90ea3c2ef1 [etw tracing] Refactor EtwSystemDataSource for testing
This is a refactor of EtwSystemDataSource with no intended behavior
change (aside from a small bug fix or two). The motivation is to make
the ETW consumer easier to test and easier to expand with more
functionality in subsequent CLs.

In particular:

- EtwSystemDataSource::Consumer is now EtwConsumer.
- The ProcessEventRecord implementation now dispatches to per-provider
  event handling functions based on the provider guid.
- LostEvent records now emit DLOG messages for diagnostic purposes.
- Perfetto events are only generated when there is valid data to give
  them. Previously, an EtwTraceEvent was created for every ETW event
  originating from the Thread provider, but only populated for valid
  CSwitch events.
- EtwConsumerTest (was EtwSystemDataSource) exercises more of the ETW
  event processing code.

Bug: 41497361
Change-Id: I544533aed9c7974f3ee8bc77bf5d3d384a93f9de
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6084478
Reviewed-by: Dirk Pranke <dpranke@google.com>
Reviewed-by: Etienne Pierre-Doray <etiennep@chromium.org>
Commit-Queue: Greg Thompson <grt@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1394798}
2024-12-11 05:56:42 -08:00
Sylvain Defresne
781b9f95b9 [ios] Requires inheriting from ProfileKeyedServiceFactoryIOS
As https://crbug.com/363173340 as been fixed, KeyedService factories
inherit from (Refcounted)?ProfileKeyedServiceFactoryIOs, so forbid
direct inheritance from (Refcounted)?BrowserStateKeyedServiceFactory.

Bug: 363173340
Change-Id: I5a57bd417bbfa50c8c6d4653a22444fb8f595d9b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6084546
Reviewed-by: Dirk Pranke <dpranke@google.com>
Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1394726}
2024-12-11 09:36:18 +00:00
Joanna Wang
130e7bdd6b PRESUBMIT: check if DEPS file is an existing file rather than path.
Bug: 382703190
Change-Id: I6fca194462fe20a4bd4dcd63a531970d91360c06
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6081832
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Auto-Submit: Joanna Wang <jojwang@chromium.org>
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1394373}
2024-12-10 17:39:03 +00:00
dpapad
7fcdfc4dfa WebUI: Move ui/webui/resources/css/overlay.css next to its last usage.
Bug: None
Change-Id: I9e2dcf0cebe094c708a03dc46f5ee6ba49ad9192
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6072121
Reviewed-by: Rebekah Potter <rbpotter@chromium.org>
Auto-Submit: Demetrios Papadopoulos <dpapad@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1392672}
2024-12-06 01:21:38 +00:00
Georg Neis
a805d21567 Delete build/lacros/*
Lacros is not getting built anymore.

Bug: b:370356213
Change-Id: I130e4ed91cff48316604c89e803a186a95824a01
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6054826
Reviewed-by: Sven Zheng <svenzheng@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1390756}
2024-12-03 02:17:15 +00:00
Peter Kasting
66c1f75f22 Fix presubmit check to use os_path.join instead of '/'.
This fixes a buggy presubmit check on Windows.

Bug: none
Change-Id: I551ed576c523b5932f90d38835b0e2780d8765a6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6060499
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1390317}
2024-12-02 15:28:37 +00:00
Andrew Grieve
b77ac76dd1 Make OWNERS review for added DEPS include_dirs opt-in
If review is required, DEPS files can add:

new_usages_require_review = True

Bug: 365797506
Change-Id: I3457e8d868fbf9715ce6ed4622d48a75c351c17a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5910107
Reviewed-by: Yaron Friedman <yfriedman@chromium.org>
Commit-Queue: Yaron Friedman <yfriedman@chromium.org>
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1389797}
2024-11-29 15:01:48 +00:00
Peter Kasting
e73b89d584 Formally ban std::span.
This has been true in practice forever, but for a while it wasn't clear
if we would someday migrate to it (bug 40256238). At this point that's
not plausibly feasible due to the API additions in base::span (split_at,
copy_from, to_fixed_extent, etc.), so clarify the status.

Bug: 40284755
Change-Id: Icc3669dae5e309611bb916088f8229f9ffca5442
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6050662
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1388397}
2024-11-26 19:35:52 +00:00
Mark Schillaci
44c90b4456 Add accessibility PRESUBMIT check for element attribute getters
This check will help stop a pattern that should not be used in the
accessibility code because it could bypass ElementInternals and give
incorrect results on custom elements.

AX-Relnotes: N/A
Bug: 372169467
Change-Id: I008c9433a22c9b6723da9e91b640390b86f4dade
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6036605
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Aaron Leventhal <aleventhal@chromium.org>
Commit-Queue: Aaron Leventhal <aleventhal@chromium.org>
Commit-Queue: Mark Schillaci <mschillaci@google.com>
Cr-Commit-Position: refs/heads/main@{#1387038}
2024-11-22 20:44:38 +00:00
Mark Schillaci
9c818545f9 Reduce noise of Android accessibility test PRESUBMIT
This CL fixes some tests to reduce the noise of an accessibility
PRESUBMIT, and moves these into a new PRESUBMIT.py file.

AX-Relnotes: N/A
Bug: 379843998
Change-Id: I142288de836c92234fadabcb9d66cc382415057d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6036252
Reviewed-by: Aaron Leventhal <aleventhal@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Mark Schillaci <mschillaci@google.com>
Cr-Commit-Position: refs/heads/main@{#1386935}
2024-11-22 18:14:22 +00:00
Tommy Martino
2a1182dc03 [iOS] Passkeys: Add generic error
This adds a generic error message to the Credential Provider Extension
for a few edge cases which are currently unhandled:
  * User has disabled "Offer to save passwords"
  * User has disabled password sync at the account level

This is a bit of an emergency fix to ensure users don't get into a bad
state in M132. Because we are past branch and will need to attempt to
merge this back, we cannot add new strings (hence the generic text) and
don't have time to prepare a custom icon. We did the best we could with
what was already on hand :)

In M133+, we will remove this error message and replace it with better
ones.

This CL also extends the PRESUBMIT exemption for the use of
systemImageNamed: to other app extensions besides just
search_widget_extension. The same include issues apply to extensions
generally (ref.
https://chromium-review.googlesource.com/c/chromium/src/+/4334347).

Screenshot: go/generic-error-screenshot

Bug: 379247744

Change-Id: I5fc32565ad821c800a2c73667573a62901b23255
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6025258
Commit-Queue: Tommy Martino <tmartino@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Rafał Godlewski <rgod@google.com>
Cr-Commit-Position: refs/heads/main@{#1385818}
2024-11-20 19:34:42 +00:00
Maksim Sisov
c98fdfab32 PRESUBMIT: discourage usage of IS_CHROMEOS_ASH/LACROS
Lacros is deprecated. We're in process of removal all code under
_LACROS and and renaming IS_CHROMEOS_ASH to IS_CHROMEOS. Once that's
done, the macros will be removed.

This CL adds a presubmit rule so that no new usages of these macros
are introduced.

Bug: 373971535, 373972275
Change-Id: I6e37aee4a86f15e6d67816cf15e61965d984f38e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6023125
Reviewed-by: Rick Byers <rbyers@chromium.org>
Commit-Queue: Maksim Sisov <msisov@igalia.com>
Cr-Commit-Position: refs/heads/main@{#1384027}
2024-11-16 20:12:27 +00:00
Theo Cristea
1d9a90af2d Remove obsolete UiThreadTest presubmit rules
The UiThreadTest files indicated to be used by the presubmit rule were
deleted here: http://crrev.com/c/5361254. The linked CL also mentions
that it is now safe to use the rules removed by this CL.

Bug: 40142780
Change-Id: I5de93074ce981dcc858d2e3c4bb969761e36bfe2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6020063
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Michael Thiessen <mthiesse@chromium.org>
Commit-Queue: Theo Cristea <theocristea@google.com>
Cr-Commit-Position: refs/heads/main@{#1382897}
2024-11-14 13:31:30 +00:00
Erik Chen
95b9c78aff Deprecate WebContentsDestroyed
Bug: 377733394
Change-Id: I14541a2673a75779436a47a969d975c0d4026609
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6001971
Reviewed-by: Avi Drissman <avi@chromium.org>
Commit-Queue: Erik Chen <erikchen@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1380128}
2024-11-08 03:26:27 +00:00
Peter Kasting
a7f937543e Move span opt-ins for enable_view/enable_borrowed_range above def.
I don't believe this has a practical effect right now, but it is safer,
and it will have a practical effect in the future as I'm planning to
modify how the span range constructors work; this will ensure any
constraints that check whether base::span is a borrowed range will give
the correct answer.

This also fixes the oversight that we omitted these from the PRESUBMIT
allowlist; understandably, since they're not listed in any of the
categories on the various cppreference.com ranges pages. I had to do
this to allow this change to pass PRESUBMIT :)

Bug: 364987728
Change-Id: I8ff30b686350797a868bf15b250172aa0c24342f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5962876
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1373610}
2024-10-24 22:15:40 +00:00
Ho Cheung
42097f6604 [cleanup] Remove some std::to_string usages
Remove usages of `std::to_string` where
appropriate.

Bug: 335672557
Change-Id: I5015c7f7d7881a6c82db4219aefee0567413f826
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5937214
Reviewed-by: Siye Liu <siliu@microsoft.com>
Commit-Queue: Ho Cheung <hocheung@chromium.org>
Reviewed-by: Daniel Nicoara <dnicoara@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Dale Curtis <dalecurtis@chromium.org>
Reviewed-by: Nina Satragno <nsatragno@chromium.org>
Reviewed-by: Paul Semel <paulsemel@chromium.org>
Reviewed-by: Joe Downing <joedow@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1371996}
2024-10-22 13:34:22 +00:00
Georg Neis
94f87f04d2 ash: Adapt a presubmit check
The check prompted to add an assert(is_chromeos_ash) if not present.
Since we are going to remove is_chromeos_ash in favor of is_chromeos
(due to Lacros removal), change the check to allow both flags and
change the error message so that it mentions is_chromeos.

Also fix an issue in the tests. They were using mock files of the same
name, so only the first one was actually used.

Bug: 373971535
Change-Id: I0510a23df5fc61ac8d4327df1835f9c84bf64392
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5951185
Commit-Queue: Georg Neis <neis@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1371890}
2024-10-22 08:20:13 +00:00
Ho Cheung
184745a9d6 [chromecast] Remove std::to_string() from //chromecast
Removes std::to_string() and uses either base::NumberToString()
or base::FormatNumber().

Bug: 335672557
Change-Id: Icfcf598a2b63bba6dd99800a88860b0333a0a403
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5936992
Reviewed-by: Sean Topping <seantopping@chromium.org>
Commit-Queue: Ho Cheung <hocheung@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1369712}
2024-10-16 23:57:20 +00:00