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

Unified Diff: chrome/browser/notifications/desktop_notification_service.h

Issue 955383003: ContentBrowserClient::RequestPermission replies with PermissionStatus instead of bool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android geolocation breakage Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/notifications/desktop_notification_service.h
diff --git a/chrome/browser/notifications/desktop_notification_service.h b/chrome/browser/notifications/desktop_notification_service.h
index 0c7407fb5db41d6b3090608f2117b3f3c4354794..8f1e167c2b3f8870ecfddd560bd7e93986a5fd4a 100644
--- a/chrome/browser/notifications/desktop_notification_service.h
+++ b/chrome/browser/notifications/desktop_notification_service.h
@@ -61,7 +61,7 @@ class DesktopNotificationService : public PermissionContextBase
const PermissionRequestID& request_id,
const GURL& requesting_origin,
bool user_gesture,
- const base::Callback<void(bool)>& result_callback);
+ const BrowserPermissionCallback& result_callback);
// Returns true if the notifier with |notifier_id| is allowed to send
// notifications.
@@ -93,7 +93,7 @@ class DesktopNotificationService : public PermissionContextBase
// PermissionContextBase:
void UpdateContentSetting(const GURL& requesting_origin,
const GURL& embedder_origin,
- bool allowed) override;
+ ContentSetting content_setting) override;
// The profile which owns this object.
Profile* profile_;

Powered by Google App Engine
This is Rietveld 408576698