|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The OnBackgroundHostClose method is called when the background host for
an extension is closed. This is designed to replace the
NOTIFICATION_EXTENSION_HOST_DESTROYED notification as it will only be
used for the background host and not other ExtensionHost types such as
infobars and popups.
This change switches ApiResourceManager and DevicePermissionsManager to
use this observer as otherwise all API resources owned by an extension
and ephemeral device permissions will be cleaned up when an infobar or
popup created by an extension is closed, even if the background page is
still active.
BUG=426632
Review URL: https://codereview.chromium.org/661083004
Cr-Commit-Position: refs/heads/master@{#301838}
|