| Index: content/shell/browser/layout_test/layout_test_notification_manager.cc
|
| diff --git a/content/shell/browser/layout_test/layout_test_notification_manager.cc b/content/shell/browser/layout_test/layout_test_notification_manager.cc
|
| index 791e370072dd3e4accf27933dc9f589cde28eebd..de75578708bfaa21c67ccd72b001532a6d258abf 100644
|
| --- a/content/shell/browser/layout_test/layout_test_notification_manager.cc
|
| +++ b/content/shell/browser/layout_test/layout_test_notification_manager.cc
|
| @@ -17,12 +17,13 @@ LayoutTestNotificationManager::~LayoutTestNotificationManager() {}
|
|
|
| blink::mojom::PermissionStatus
|
| LayoutTestNotificationManager::CheckPermission(const GURL& origin) {
|
| + // This may be called for checking the permission for both a frame or a worker
|
| + // however, since notifications can be used equally from frames/workers it's
|
| + // sufficient just to check that whether it's available in the worker.
|
| return LayoutTestContentBrowserClient::Get()
|
| ->GetLayoutTestBrowserContext()
|
| ->GetLayoutTestPermissionManager()
|
| - ->GetPermissionStatus(PermissionType::NOTIFICATIONS,
|
| - origin,
|
| - origin);
|
| + ->GetPermissionStatusForWorker(PermissionType::NOTIFICATIONS, origin);
|
| }
|
|
|
| } // namespace content
|
|
|