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

Unified Diff: chrome/browser/push_messaging/push_messaging_permission_context.h

Issue 1153873003: Add way for PermissionContext to be automatically restricted to secure origins. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@midi_permission_sysex
Patch Set: Created 5 years, 7 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/push_messaging/push_messaging_permission_context.h
diff --git a/chrome/browser/push_messaging/push_messaging_permission_context.h b/chrome/browser/push_messaging/push_messaging_permission_context.h
index f978fea5ef31719bbc57e2ddac8a70ec24c7e531..7551f11ebf76b0d424d3733ecd1cc404d9ed103c 100644
--- a/chrome/browser/push_messaging/push_messaging_permission_context.h
+++ b/chrome/browser/push_messaging/push_messaging_permission_context.h
@@ -34,6 +34,7 @@ class PushMessagingPermissionContext : public PermissionContextBase {
const GURL& embedding_origin,
bool user_gesture,
const BrowserPermissionCallback& callback) override;
+ bool RestrictToSecureOrigins() const override;
private:
FRIEND_TEST_ALL_PREFIXES(PushMessagingPermissionContextTest,

Powered by Google App Engine
This is Rietveld 408576698