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

Unified Diff: chrome/browser/storage/durable_storage_permission_context.h

Issue 1478433002: Permissions: Move common logic from DecidePermission to RequestPermission (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@innoinherit
Patch Set: Rebase / git cl format Created 5 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
Index: chrome/browser/storage/durable_storage_permission_context.h
diff --git a/chrome/browser/storage/durable_storage_permission_context.h b/chrome/browser/storage/durable_storage_permission_context.h
index 830de530c5e732711f626f7108fcbcc523ad6576..7f30302abd2dcb45a4aecc6fb7db3f93ebeb6bbc 100644
--- a/chrome/browser/storage/durable_storage_permission_context.h
+++ b/chrome/browser/storage/durable_storage_permission_context.h
@@ -15,6 +15,7 @@ class DurableStoragePermissionContext : public PermissionContextBase {
explicit DurableStoragePermissionContext(Profile* profile);
~DurableStoragePermissionContext() override = default;
+ // PermissionContextBase implementation.
// Grant if requesting_origin is bookmarked or already granted.
void DecidePermission(content::WebContents* web_contents,
const PermissionRequestID& id,
@@ -22,11 +23,9 @@ class DurableStoragePermissionContext : public PermissionContextBase {
const GURL& embedding_origin,
bool user_gesture,
const BrowserPermissionCallback& callback) override;
-
void UpdateContentSetting(const GURL& requesting_origin,
const GURL& embedding_origin,
ContentSetting content_setting) override;
-
bool IsRestrictedToSecureOrigins() const override;
private:

Powered by Google App Engine
This is Rietveld 408576698