From 56bc636706f1bb775d7947cd432f6e277c17a578 Mon Sep 17 00:00:00 2001 From: Jeremy Apthorp Date: Tue, 2 Oct 2018 15:08:12 -0700 Subject: [PATCH] Make content::PermissionManager a delegate of PermissionController https://chromium-review.googlesource.com/c/chromium/src/+/1111340 --- atom/browser/atom_permission_manager.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atom/browser/atom_permission_manager.cc b/atom/browser/atom_permission_manager.cc index b789bde648af..20355a32aa42 100644 --- a/atom/browser/atom_permission_manager.cc +++ b/atom/browser/atom_permission_manager.cc @@ -151,7 +151,7 @@ int AtomPermissionManager::RequestPermissionsWithDetails( const StatusesCallback& response_callback) { if (permissions.empty()) { response_callback.Run(std::vector()); - 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 =