| 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 701b24b9fb6be227118e9e0cb4d2aac1f7b83c99..b047fe2e3d3440bd8cc5f6d6a6d301e4f5283e6f 100644
|
| --- a/content/shell/browser/layout_test/layout_test_notification_manager.cc
|
| +++ b/content/shell/browser/layout_test/layout_test_notification_manager.cc
|
| @@ -212,12 +212,13 @@ void LayoutTestNotificationManager::ReplaceNotificationIfNeeded(
|
|
|
| blink::WebNotificationPermission
|
| LayoutTestNotificationManager::CheckPermission(const GURL& origin) {
|
| - return ToWebNotificationPermission(LayoutTestContentBrowserClient::Get()
|
| - ->GetLayoutTestBrowserContext()
|
| - ->GetLayoutTestPermissionManager()
|
| - ->GetPermissionStatus(PermissionType::NOTIFICATIONS,
|
| - origin,
|
| - origin));
|
| + const url::Origin actual_origin(origin);
|
| + return ToWebNotificationPermission(
|
| + LayoutTestContentBrowserClient::Get()
|
| + ->GetLayoutTestBrowserContext()
|
| + ->GetLayoutTestPermissionManager()
|
| + ->GetPermissionStatus(PermissionType::NOTIFICATIONS, actual_origin,
|
| + actual_origin));
|
| }
|
|
|
| } // namespace content
|
|
|