
The override happens in chrome/app/chrome_main_. On most platforms, the user data directory can be overridden by passing the -user-data-dir command-line flag to the Chrome binary. Overriding the User Data Directory Command Line

The default location comes from Context.getDir and is specific to the app.Įxample: /data/user/0//app_chrome iOS The default location is: /home/chronos Android Note that $XDG_CONFIG_HOME affects all applications conforming to the XDG Base Directory Spec, while $CHROME_CONFIG_HOME is specific to Chrome and Chromium. The ~/.config portion of the default location can be overridden by $CHROME_CONFIG_HOME (since M61) or by $XDG_CONFIG_HOME. (The beta and dev channel suffixes are determined from $CHROME_VERSION_EXTRA, which is passed by the launch wrapper script.)

(The canary channel suffix is determined using the CrProductDirName key in the browser app's ist.) Linux ~/Library/Application Support/Chromium.~/Library/Application Support/Google/Chrome Canary.~/Library/Application Support/Google/Chrome Beta.~/Library/Application Support/Google/Chrome.The default location is in the Application Support folder: (The canary channel suffix is determined using InstallConstants::install_suffix.) Mac OS X %LOCALAPPDATA%\Google\Chrome SxS\User Data.%LOCALAPPDATA%\Google\Chrome Beta\User Data.%LOCALAPPDATA%\Google\Chrome\User Data.The default location is in the local app data folder: release channel (stable / beta / dev / canary).Chromium, based on is_chrome_branded in GN args), and The default location of the user data directory is computed by chrome::GetDefaultUserDataDirectory. C:\Users\Alice\AppData\Local\Google\Chrome\User Data.C:\Users\Alice\AppData\Local\Google\Chrome\User Data\Default.

