session: allow providing permission to handle external protocols
This commit is contained in:
parent
aa29dc0c8a
commit
ca756c3c24
6 changed files with 58 additions and 7 deletions
|
@ -91,4 +91,12 @@ void WebContentsPermissionHelper::RequestPointerLockPermission(
|
|||
user_gesture);
|
||||
}
|
||||
|
||||
void WebContentsPermissionHelper::RequestOpenExternalPermission(
|
||||
const base::Callback<void(bool)>& callback,
|
||||
bool user_gesture) {
|
||||
RequestPermission((content::PermissionType)(PermissionType::OPEN_EXTERNAL),
|
||||
callback,
|
||||
user_gesture);
|
||||
}
|
||||
|
||||
} // namespace atom
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue