the local state file contains the installation of flags (this is a text file in json format)
Chrome user directory location
"browser": { "enabled_labs_experiments": [ "load-cloud-policy-on-signin", "old-checkbox-style" ], "last_redirect_origin": "" }
"enabled_labs_experiments" contains the value of such flags that the user activated manually. In your case, you must first check that the flag you selected is available, or not, if not, then you should add your flag to this javascript file.
Using javascript, you can read and edit text files to read this file from a specified location in accordance with the operating system and edit this file.
Satyam koyani
source share