ChromePromptImpl::DisableExtensions is triggered from the Chrome Cleanup Tool to remove extensions that are determined to be UwS. Access to this should be controlled by a kChromeCleanupDisableExtensionsFeature feature flag.
kChromeCleanupQuarantineFeature in srt_field_trial_win.h is a good model of how to implement the feature flag.
The implementation of DisableExtension is at
https://cs.chromium.org/chromium/src/chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl.cc?rcl=b903c3070dcb045d64722ef8d738d171e66bf241&l=72.
If the feature is not enabled, the extension_ids parameter of ChromePromptImpl::PromptUser should also be ignored. (Treat it as if it is empty.) This is the list of extensions to delete that will be displayed to the user - if DisableExtension is turned off be the feature flag, we shouldn't display the extensions to the user.
Comment 1 by joenotcharles@google.com
, Nov 13