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 b3f64b471bd1760a91999686d5a6022d4b902a0a..7366aabcd8f242d08132b18e17f63463a4bd0783 100644 |
--- a/content/shell/browser/layout_test/layout_test_notification_manager.cc |
+++ b/content/shell/browser/layout_test/layout_test_notification_manager.cc |
@@ -29,9 +29,10 @@ LayoutTestNotificationManager::CheckPermission(const GURL& origin) { |
void LayoutTestNotificationManager::RequestPermission( |
const GURL& origin, |
- const base::Callback<void(blink::WebNotificationPermission)>& callback) { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
- callback.Run(CheckPermission(origin)); |
+ const base::Callback<void(bool)>& callback) { |
+ bool allowed = |
+ CheckPermission(origin) == blink::WebNotificationPermissionAllowed; |
+ callback.Run(allowed); |
} |
void LayoutTestNotificationManager::SetPermission( |