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

Unified Diff: content/shell/browser/layout_test/layout_test_notification_manager.cc

Issue 774573003: Start pulling away notification logic from ChromeContentBrowserClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/shell/browser/layout_test/layout_test_notification_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 dd8fc22376a029ec3f2f1177474183da51384f37..7e7adf4c927bf1a4ec6139eaa8ab36c4e6ba7406 100644
--- a/content/shell/browser/layout_test/layout_test_notification_manager.cc
+++ b/content/shell/browser/layout_test/layout_test_notification_manager.cc
@@ -17,7 +17,10 @@ LayoutTestNotificationManager::LayoutTestNotificationManager()
LayoutTestNotificationManager::~LayoutTestNotificationManager() {}
blink::WebNotificationPermission
-LayoutTestNotificationManager::CheckPermission(const GURL& origin) {
+LayoutTestNotificationManager::CheckPermission(
+ ResourceContext* resource_context,
+ const GURL& origin,
+ int render_process_id) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
NotificationPermissionMap::iterator iter =
permission_map_.find(origin);
@@ -28,7 +31,8 @@ LayoutTestNotificationManager::CheckPermission(const GURL& origin) {
}
bool LayoutTestNotificationManager::RequestPermission(const GURL& origin) {
- return CheckPermission(origin) == blink::WebNotificationPermissionAllowed;
+ return CheckPermission(nullptr, origin, 0) ==
+ blink::WebNotificationPermissionAllowed;
}
void LayoutTestNotificationManager::SetPermission(
@@ -43,9 +47,11 @@ void LayoutTestNotificationManager::ClearPermissions() {
permission_map_.clear();
}
-void LayoutTestNotificationManager::Show(
+void LayoutTestNotificationManager::DisplayNotification(
+ BrowserContext* browser_context,
const ShowDesktopNotificationHostMsgParams& params,
scoped_ptr<DesktopNotificationDelegate> delegate,
+ int render_process_id,
base::Closure* cancel_callback) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
std::string title = base::UTF16ToUTF8(params.title);
« no previous file with comments | « content/shell/browser/layout_test/layout_test_notification_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698