Move requests from Show() argument to PermissionPrompt::Delegate
This patch moves the vector of permission requests, and the initial
vector of accept states, from arguments to PermissionPrompt::Show() to
values stored on the PermissionPrompt::Delegate. Since the vector is of
raw pointers, the PermissionPrompt could hold inadvertently hold on to
pointers from Show() after they have been freed. This is currently being
done on PermissionPromptAndroid, so this patch fixes this.
BUG=
606138
Review-Url:
https://codereview.chromium.org/2868783002
Cr-Commit-Position: refs/heads/master@{#471211}
Committed:
https://chromium.googlesource.com/chromium/src/+/ca4d3f297d0b03d83711a9d17f808e299aa6ff19