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

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

Issue 758603002: Use Mojo Permission Service when requesting Notifications permission. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission_geolocation_follow_up
Patch Set: fixes to pass tests Created 6 years, 1 month 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: content/shell/browser/layout_test/layout_test_notification_manager.h
diff --git a/content/shell/browser/layout_test/layout_test_notification_manager.h b/content/shell/browser/layout_test/layout_test_notification_manager.h
index edccd4969150c4c37a1a7fc671738da015d2abd7..be79c5fe728518ed1a2035e6fd419877170723e9 100644
--- a/content/shell/browser/layout_test/layout_test_notification_manager.h
+++ b/content/shell/browser/layout_test/layout_test_notification_manager.h
@@ -27,14 +27,12 @@ class LayoutTestNotificationManager {
// Checks whether |origin| has permission to display notifications in tests.
// Must be called on the IO thread.
- blink::WebNotificationPermission CheckPermission(
- const GURL& origin);
+ blink::WebNotificationPermission CheckPermission(const GURL& origin);
// Requests permission for |origin| to display notifications in layout tests.
// Must be called on the IO thread.
- void RequestPermission(
- const GURL& origin,
- const base::Callback<void(bool)>& callback);
+ // Returns whether the permission is granted.
+ bool RequestPermission(const GURL& origin);
// Sets the permission to display notifications for |origin| to |permission|.
// Must be called on the IO thread.

Powered by Google App Engine
This is Rietveld 408576698