• Carlos Frias's avatar
    DPWA: Allow OS hooks to be uninstalled individually · 09a564d7
    Carlos Frias authored
    This CL updates the OsIntegrationManager::UninstallOsHooks() method to
    accept an additional |os_hooks| parameter to specify which OS Hooks to
    uninstall.
    
    This CL is in preparation to allow Run on OS Login to be enabled/disabled
    by the user after the web app is installed, via the
    OsIntegrationManager::UninstallOsHooks() API. Currently there is no way
    to uninstall an OS Hook (i.e. Run on OS Login) individually.
    
    This CL consists of the following changes:
    
    1. Update OsIntegrationManager::UninstallOsHooks() to honor the passed
        |os_hooks| and only uninstall the specified OS hooks.
    
    2. Add OsIntegrationManager::UninstallAllOsHooks() API to be replaced in
        places that currently call UninstallOsHooks() with the intention to
        effectively uninstall all OS hooks.
    
    
    Bug: 1121372
    Change-Id: Ie294f61b9518e997bf4192ac1bdcb7db5bf819fb
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2372819
    Commit-Queue: Carlos Frias <carlos.frias@microsoft.com>
    Reviewed-by: default avatarAlexey Baskakov <loyso@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#807652}
    09a564d7
web_app_install_finalizer.cc 17.4 KB