diff options
Diffstat (limited to 'webkit/tools/test_shell/notification_presenter.cc')
-rw-r--r-- | webkit/tools/test_shell/notification_presenter.cc | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/webkit/tools/test_shell/notification_presenter.cc b/webkit/tools/test_shell/notification_presenter.cc index cd0a177..7e7967e 100644 --- a/webkit/tools/test_shell/notification_presenter.cc +++ b/webkit/tools/test_shell/notification_presenter.cc @@ -104,15 +104,6 @@ WebNotificationPresenter::Permission TestNotificationPresenter::checkPermission( : WebNotificationPresenter::PermissionDenied; } -WebNotificationPresenter::Permission TestNotificationPresenter::checkPermission( - const WebURL& url) { - // Check with the layout test controller - std::string origin = static_cast<GURL>(url).GetOrigin().spec(); - bool allowed = allowed_origins_.find(origin) != allowed_origins_.end(); - return allowed ? WebNotificationPresenter::PermissionAllowed - : WebNotificationPresenter::PermissionDenied; -} - void TestNotificationPresenter::requestPermission( const WebSecurityOrigin& origin, WebNotificationPermissionCallback* callback) { |