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

Unified Diff: chrome/browser/permissions/permission_queue_controller.cc

Issue 1164073005: Allow script to request durable storage permission (chrome side) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix conflicts after midi constant permission landed Created 5 years, 4 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
« no previous file with comments | « chrome/browser/permissions/permission_manager.cc ('k') | chrome/browser/storage/OWNERS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/permissions/permission_queue_controller.cc
diff --git a/chrome/browser/permissions/permission_queue_controller.cc b/chrome/browser/permissions/permission_queue_controller.cc
index 700d424de9e6e1e347dcb036b9de9a38eeccf313..3f62768abcd33341b710d2513306fed6d6a2ce18 100644
--- a/chrome/browser/permissions/permission_queue_controller.cc
+++ b/chrome/browser/permissions/permission_queue_controller.cc
@@ -12,6 +12,7 @@
#include "chrome/browser/notifications/notification_permission_infobar_delegate.h"
#include "chrome/browser/permissions/permission_context_uma_util.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/storage/durable_storage_permission_infobar_delegate.h"
#include "chrome/browser/tab_contents/tab_util.h"
#include "chrome/common/pref_names.h"
#include "components/content_settings/core/browser/host_content_settings_map.h"
@@ -137,6 +138,11 @@ void PermissionQueueController::PendingInfobarRequest::CreateInfoBar(
display_languages);
break;
#endif
+ case CONTENT_SETTINGS_TYPE_DURABLE_STORAGE:
+ infobar_ = DurableStoragePermissionInfoBarDelegate::Create(
+ GetInfoBarService(id_), controller, id_, requesting_frame_,
+ display_languages, type_);
+ break;
default:
NOTREACHED();
break;
« no previous file with comments | « chrome/browser/permissions/permission_manager.cc ('k') | chrome/browser/storage/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698