Overview
Theflags.gn file contains GN (Generate Ninja) build arguments that control how Helium is compiled. These flags disable unwanted Chromium features, configure API keys, and optimize the build for privacy.
This file is located at the root of the source directory and is read during the build process.
File Format
The file uses GN’s simple key-value format:- Boolean values:
trueorfalse - String values:
"string content"(quoted) - Numeric values:
0,1,2, etc.
Build Flags
Privacy & Telemetry
Disables Chromium’s crash and error reporting system. Set to
false to prevent any telemetry data from being sent to Google.Disables Chrome Remote Desktop functionality. Set to
false to remove this feature entirely from the build.Disables Google’s A/B testing framework (field trials). Set to
true to prevent automatic participation in experiments.Network Services
Disables multicast DNS (mDNS) support. Set to
false to prevent local network device discovery.Disables network service discovery features. Set to
false to remove SSDP and similar protocols.Disables the Google Hangouts services extension. Set to
false to remove this Google-specific feature.Security & DRM
Enables Widevine DRM support for protected content playback. Set to
true to allow streaming services like Netflix.Controls Safe Browsing functionality:
0: Completely disabled1: Standard protection2: Enhanced protection
API Keys
Google API key for various services. Set to empty string
"" to disable Google API features.OAuth 2.0 client ID for Google services. Set to empty string to disable sync and account features.
OAuth 2.0 client secret for Google services. Set to empty string to disable authentication.
Whether to use official Google API keys. Set to
false for privacy-focused builds.Build Optimization
Disables Chrome-specific Clang plugins during compilation. Can speed up builds but may miss some warnings.
Controls whether compiler warnings cause build failures. Set to
false for easier development.Excludes unwind tables from the binary, reducing size. Set to
true unless you need detailed crash reports.Profile-Guided Optimization phase:
0: Disabled1: Instrumentation phase2: Optimization phase
Machine Learning
Disables TensorFlow Lite library inclusion. Set to
false to reduce binary size and remove ML features.Version Control
Whether to use unofficial version numbering. Typically
false to maintain compatibility with extension APIs.Example Configuration
Related Configuration
- deps.ini - Additional dependencies downloaded after cloning
- downloads.ini - Chromium source archive configuration
- patches/series - Patch application order