Repository: electron
Issue: [Bug]: electron 31 does not build with safe_browsing_mode=0 (regression from 30)
Labels: platform/linux,blocked/need-info ❌,bug :beetle:,31-x-y

### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a bug report that matches the one I want to file, without success.

### Electron Version

31.2.1

### What operating system(s) are you using?

Other Linux

### Operating System Version

openSUSE Tumbleweed

### What arch are you using?

x64

### Last Known Working Electron version

30.x

### Expected Behavior

Electron can be built without unneeded chromium features like safe browsing

### Actual Behavior

```
[ 9295s] FAILED: obj/electron/chromium_src/chrome/fullscreen_controller.o
[ 9295s] g++ -MD -MF obj/electron/chromium_src/chrome/fullscreen_controller.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_NONE -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DSK_ENABLE_SKSL -DSK_UNTIL_CRBUG_1187654_IS_FIXED -DSK_USER_CONFIG_HEADER=\"../../skia/config/SkUserConfig.h\" -DSK_WIN_FONTMGR_NO_SIMULATIONS -DSK_DISABLE_LEGACY_INIT_DECODERS -DSK_SLUG_DISABLE_LEGACY_DESERIALIZE -DSK_DISABLE_LEGACY_VULKAN_BACKENDSEMAPHORE -DSK_DISABLE_LEGACY_CREATE_CHARACTERIZATION -DSK_DISABLE_LEGACY_VULKAN_MUTABLE_TEXTURE_STATE -DSK_CODEC_DECODES_JPEG -DSK_ENCODE_JPEG -DSK_ENCODE_PNG -DSK_ENCODE_WEBP -DSK_GANESH -DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\" -DSK_GL -DSK_VULKAN=1 -DSK_GRAPHITE -DVK_USE_PLATFORM_XCB_KHR -DVK_USE_PLATFORM_WAYLAND_KHR -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_56 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_56 -DBASE_USE_PERFETTO_CLIENT_LIBRARY=1 -DUSE_EGL -DTOOLKIT_VIEWS=1 -DUSING_SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DU_IMPORT=U_EXPORT -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DGOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE=0 -DHAVE_PTHREAD -DV8_USE_EXTERNAL_STARTUP_DATA -DWEBRTC_ENABLE_AVX2 -DWEBRTC_CHROMIUM_BUILD -DWEBRTC_POSIX -DWEBRTC_LINUX -DABSL_ALLOCATOR_NOTHROW=1 -DWEBRTC_USE_X11 -DWEBRTC_USE_PIPEWIRE -DWEBRTC_USE_GIO -DLOGGING_INSIDE_WEBRTC -DLEVELDB_PLATFORM_CHROMIUM=1 -DCRASHPAD_ZLIB_SOURCE_EXTERNAL -DUSE_SYSTEM_ZLIB=1 -DV8_COMPRESS_POINTERS -DV8_COMPRESS_POINTERS_IN_SHARED_CAGE -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_ENABLE_SANDBOX -DV8_DEPRECATION_WARNINGS -DV8_USE_PERFETTO -DV8_HAVE_TARGET_OS -DV8_TARGET_OS_LINUX -DCPPGC_CAGED_HEAP -DCPPGC_YOUNG_GENERATION -DCPPGC_POINTER_COMPRESSION -DCPPGC_SLIM_WRITE_BARRIER -DATK_LIB_DIR=\"/usr/lib64\" -DUSE_ATK_BRIDGE -DFLATBUFFERS_LOCALE_INDEPENDENT=0 -DVK_NO_PROTOTYPES -DUSE_VULKAN_XCB -I../.. -Igen -I../../third_party/skia -Igen/third_party/skia -I../../third_party/wuffs/src/release/c -I../../third_party/vulkan/include -I../../third_party/vulkan-deps/vulkan-headers/src/include -I../../third_party/wayland/src/src -I../../third_party/wayland/include/src -I../../third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -Igen/shim_headers/container_shim -Igen/shim_headers/base_shim -Igen/shim_headers/config_shim -Igen/shim_headers/core_headers_shim -Igen/shim_headers/nullability_shim -Igen/shim_headers/prefetch_shim -Igen/shim_headers/cleanup_shim -Igen/shim_headers/btree_shim -Igen/shim_headers/fixed_array_shim -Igen/shim_headers/flat_hash_map_shim -Igen/shim_headers/flat_hash_set_shim -Igen/shim_headers/inlined_vector_shim -Igen/shim_headers/node_hash_map_shim -Igen/shim_headers/node_hash_set_shim -Igen/shim_headers/failure_signal_handler_shim -Igen/shim_headers/stacktrace_shim -Igen/shim_headers/symbolize_shim -Igen/shim_headers/any_invocable_shim -Igen/shim_headers/bind_front_shim -Igen/shim_headers/function_ref_shim -Igen/shim_headers/hash_shim -Igen/shim_headers/absl_check_shim -Igen/shim_headers/absl_log_shim -Igen/shim_headers/die_if_null_shim -Igen/shim_headers/memory_shim -Igen/shim_headers/type_traits_shim -Igen/shim_headers/bits_shim -Igen/shim_headers/int128_shim -Igen/shim_headers/random_shim -Igen/shim_headers/distributions_shim -Igen/shim_headers/status_shim -Igen/shim_headers/statusor_shim -Igen/shim_headers/strings_shim -Igen/shim_headers/cord_shim -Igen/shim_headers/str_format_shim -Igen/shim_headers/string_view_shim -Igen/shim_headers/synchronization_shim -Igen/shim_headers/time_shim -Igen/shim_headers/optional_shim -Igen/shim_headers/span_shim -Igen/shim_headers/variant_shim -Igen/shim_headers/utility_shim -Igen/shim_headers/zlib_shim -Igen/shim_headers/double_conversion_shim -Igen/shim_headers/libevent_shim -Igen/shim_headers/icui18n_shim -Igen/shim_headers/icuuc_shim -Igen/shim_headers/libpng_shim -Igen/shim_headers/libwebp_shim -I../../net/third_party/quiche/overrides -I../../net/third_party/quiche/src/quiche/common/platform/default -I../../net/third_party/quiche/src -Igen/shim_headers/brotli_shim -Igen/shim_headers/zstd_shim -Igen/shim_headers/libXNVCtrl_shim -Igen/third_party/dawn/include -I../../third_party/dawn/include -Igen/shim_headers/re2_shim -Igen/shim_headers/libyuv_shim -Igen/shim_headers/opus_shim -Igen/shim_headers/libvpx_shim -Igen/shim_headers/aom_shim -Igen/shim_headers/dav1d_shim -Igen/shim_headers/crc32c_shim -I../../third_party/khronos -I../../gpu -Igen/shim_headers/ffmpeg_shim -Igen/shim_headers/flac_shim -Igen/shim_headers/snappy_shim -Igen/shim_headers/minizip_shim -Igen/shim_headers/flatbuffers_shim -I../../base/allocator/partition_allocator/src -Igen/base/allocator/partition_allocator/src -I../../third_party/boringssl/src/include -I../../third_party/protobuf/src -Igen/protoc_out -I../../third_party/ipcz/include -I../../third_party/ced/src -Igen/net/third_party/quiche/src -I../../third_party/webrtc_overrides -I../../third_party/webrtc -Igen/third_party/webrtc -I../../third_party/abseil-cpp -I../../third_party/libwebm/source -I../../third_party/mesa_headers -I../../third_party/leveldatabase -I../../third_party/leveldatabase/src -I../../third_party/leveldatabase/src/include -I../../third_party/crashpad/crashpad -I../../third_party/crashpad/crashpad/compat/linux -I../../third_party/crashpad/crashpad/compat/non_win -I../../v8/include -Igen/third_party/metrics_proto -I../../third_party/flatbuffers/src/include -I../../third_party/wayland/include -I../../third_party/wayland/src/cursor -I../../third_party/wayland/src/egl -Igen/third_party/wayland/src/protocol -fno-ident -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -pipe -pthread -g2 -flto=auto -fvisibility=hidden -isystem/usr/include/glib-2.0 -isystem/usr/lib64/glib-2.0/include -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -DNOMINMAX -isystem/usr/include/nss3 -isystem/usr/include/nspr4 -isystem/usr/include/dbus-1.0 -isystem/usr/lib64/dbus-1.0/include -isystem/usr/include/at-spi2-atk/2.0 -isystem/usr/include/at-spi-2.0 -isystem/usr/include/libmount -isystem/usr/include/blkid -isystem/usr/include/atk-1.0 -isystem/usr/include/dbus-1.0 -isystem/usr/lib64/dbus-1.0/include -isystem/usr/include/glib-2.0 -isystem/usr/lib64/glib-2.0/include -DNOMINMAX -std=gnu++2a -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type  -DIS_SERIAL_ENABLED_PLATFORM -I/usr/include/wayland -I/usr/include/libxkbcommon -Wno-error=return-type -Wno-class-memaccess -Wno-packed-not-aligned -Wno-address -c ../../chrome/browser/ui/exclusive_access/fullscreen_controller.cc -o obj/electron/chromium_src/chrome/fullscreen_controller.o
[ 9295s] In file included from ../../components/safe_browsing/content/browser/base_ui_manager.h:16,
[ 9295s]                  from ../../components/safe_browsing/content/browser/ui_manager.h:16,
[ 9295s]                  from ../../chrome/browser/safe_browsing/phishy_interaction_tracker.h:11,
[ 9295s]                  from ../../chrome/browser/safe_browsing/safe_browsing_service.h:26,
[ 9295s]                  from ../../chrome/browser/ui/exclusive_access/fullscreen_controller.cc:22:
[ 9295s] ../../components/security_interstitials/core/unsafe_resource.h:16:10: fatal error: components/safe_browsing/core/common/proto/realtimeapi.pb.h: No such file or directory
[ 9295s]    16 | #include "components/safe_browsing/core/common/proto/realtimeapi.pb.h"
[ 9295s]       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 9295s] compilation terminated.

```

### Testcase Gist URL

_No response_

### Additional Information

_No response_