Make content::PermissionManager a delegate of PermissionController
https://chromium-review.googlesource.com/c/chromium/src/+/1111340
This commit is contained in:
Родитель
eef375a428
Коммит
56bc636706
|
@ -151,7 +151,7 @@ int AtomPermissionManager::RequestPermissionsWithDetails(
|
|||
const StatusesCallback& response_callback) {
|
||||
if (permissions.empty()) {
|
||||
response_callback.Run(std::vector<blink::mojom::PermissionStatus>());
|
||||
return kNoPendingOperation;
|
||||
return content::PermissionController::kNoPendingOperation;
|
||||
}
|
||||
|
||||
if (request_handler_.is_null()) {
|
||||
|
@ -169,7 +169,7 @@ int AtomPermissionManager::RequestPermissionsWithDetails(
|
|||
statuses.push_back(blink::mojom::PermissionStatus::GRANTED);
|
||||
}
|
||||
response_callback.Run(statuses);
|
||||
return kNoPendingOperation;
|
||||
return content::PermissionController::kNoPendingOperation;
|
||||
}
|
||||
|
||||
auto* web_contents =
|
||||
|
|
Загрузка…
Ссылка в новой задаче