Make content::PermissionManager a delegate of PermissionController

https://chromium-review.googlesource.com/c/chromium/src/+/1111340
This commit is contained in:
Jeremy Apthorp 2018-10-02 15:08:12 -07:00
Родитель eef375a428
Коммит 56bc636706
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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 =