The GN file you point at defines a C preprocessor macro, which doesn't seem to apply in this case. Rather, either:
- the gn action could conditionally provide the "CHROME_BUILD_TYPE" environment variable that's required there (though this is probably awkward), or
- build/util/version.py should be modified to take a flag instead, and the action could conditionally specify this flag depending on the is_official_build variable