Appease the linter
This commit is contained in:
parent
98e9311669
commit
4d7b85bd01
3 changed files with 6 additions and 4 deletions
|
@ -105,7 +105,7 @@ int AtomPermissionManager::RequestPermission(
|
|||
nullptr,
|
||||
response_callback);
|
||||
}
|
||||
|
||||
|
||||
int AtomPermissionManager::RequestPermissionWithDetails(
|
||||
content::PermissionType permission,
|
||||
content::RenderFrameHost* render_frame_host,
|
||||
|
@ -173,7 +173,8 @@ int AtomPermissionManager::RequestPermissionsWithDetails(
|
|||
base::Bind(&AtomPermissionManager::OnPermissionResponse,
|
||||
base::Unretained(this), request_id, i);
|
||||
if (details == nullptr) {
|
||||
request_handler_.Run(web_contents, permission, callback, base::DictionaryValue());
|
||||
request_handler_.Run(web_contents, permission, callback,
|
||||
base::DictionaryValue());
|
||||
} else {
|
||||
request_handler_.Run(web_contents, permission, callback, *details);
|
||||
}
|
||||
|
|
|
@ -61,7 +61,8 @@ void HandleExternalProtocolInUI(
|
|||
|
||||
GURL escaped_url(net::EscapeExternalHandlerValue(url.spec()));
|
||||
auto callback = base::Bind(&OnOpenExternal, escaped_url);
|
||||
permission_helper->RequestOpenExternalPermission(callback, has_user_gesture, url);
|
||||
permission_helper->RequestOpenExternalPermission(callback, has_user_gesture,
|
||||
url);
|
||||
}
|
||||
|
||||
void OnPdfResourceIntercepted(
|
||||
|
|
|
@ -58,7 +58,7 @@ void WebContentsPermissionHelper::RequestPermission(
|
|||
bool user_gesture) {
|
||||
RequestPermissionWithDetails(permission, callback, user_gesture, nullptr);
|
||||
}
|
||||
|
||||
|
||||
void WebContentsPermissionHelper::RequestPermissionWithDetails(
|
||||
content::PermissionType permission,
|
||||
const base::Callback<void(bool)>& callback,
|
||||
|
|
Loading…
Reference in a new issue