DPWA: Add option to control registering file handlers in InstallOsHooks
This CL enables obtaining a finer control for OS hooks supported by OSIntegrationManager::InstallOsHooks(). Currently, there is no option for file handlers and file_handler_manager_->EnableAndRegisterOsFileHandlers() is being called every time InstallOsHooks() is executed. This CL adds the bitset OsHookType to InstallOsHooksOptions struct to allow controlling which OS Hooks to install, including file handlers. bool add_to_application_menu now becomes os_hooks[OsHookType::kShortcuts]. bool run_on_os_login now becomes os_hooks[OsHookType::kRunOnOsLogin]. Bug: 1087219 Change-Id: Ib370c394235efe66fca23267928184b9841c76ee Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2373229 Commit-Queue: Carlos Frias <carlos.frias@microsoft.com> Reviewed-by:Daniel Murphy <dmurph@chromium.org> Reviewed-by:
Alexey Baskakov <loyso@chromium.org> Cr-Commit-Position: refs/heads/master@{#807509}
Showing
Please register or sign in to comment