[HBD] If DefaultPluginPolicy set to 3, prompt should allow flash for the next page load only
Currently the flash permission prompt doesn't work with an enterprise policy set
to ASK. The reason is that content settings that are stored as a result of
answering the prompt aren't honored because they are overriden by the enterprise
default. This CL changes that, such that when enterprise policy is enabled,
accepting the permission prompt will allow flash on that origin for the duration
of the next page load only. After the prompt is accepted, the page will
automatically be refreshed, we don't revoke access at this point, but any future
navigations of the page will cause permission to be revoked from the origin.
Note that because permission is granted on a per-origin basis, other frames open
to the same origin will also have access during the period of the grant. This
can't be avoided right now due to the way plugin permission checks work (the
WebConents isn't always available at the time of the check).
BUG=
654148
Committed:
https://crrev.com/4f6714cc01b08469c748536cc70d1fd022863217
Cr-Commit-Position: refs/heads/master@{#425873}