Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Side by Side Diff: content/shell/renderer/test_runner/notification_presenter.cc

Issue 433433002: Remove code for the old Web Notification permission-path. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/shell/renderer/test_runner/notification_presenter.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/shell/renderer/test_runner/notification_presenter.h" 5 #include "content/shell/renderer/test_runner/notification_presenter.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/common/desktop_notification_messages.h" 8 #include "content/common/desktop_notification_messages.h"
9 #include "content/shell/renderer/test_runner/WebTestDelegate.h" 9 #include "content/shell/renderer/test_runner/WebTestDelegate.h"
10 #include "third_party/WebKit/public/platform/Platform.h" 10 #include "third_party/WebKit/public/platform/Platform.h"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 std::string title = notification.title().utf8(); 123 std::string title = notification.title().utf8();
124 active_notifications_.erase(title); 124 active_notifications_.erase(title);
125 } 125 }
126 126
127 WebNotificationPresenter::Permission NotificationPresenter::checkPermission( 127 WebNotificationPresenter::Permission NotificationPresenter::checkPermission(
128 const WebSecurityOrigin& security_origin) { 128 const WebSecurityOrigin& security_origin) {
129 return delegate_->checkWebNotificationPermission( 129 return delegate_->checkWebNotificationPermission(
130 GURL(security_origin.toString())); 130 GURL(security_origin.toString()));
131 } 131 }
132 132
133 void NotificationPresenter::requestPermission(
134 const WebSecurityOrigin& security_origin,
135 WebNotificationPermissionCallback* callback) {
136 NOTREACHED();
137 }
138
139 } // namespace content 133 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/notification_presenter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698