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

Unified Diff: chrome/browser/content_settings/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: rebased onto content setting patch Created 5 years, 6 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/content_settings/permission_queue_controller.cc
diff --git a/chrome/browser/content_settings/permission_queue_controller.cc b/chrome/browser/content_settings/permission_queue_controller.cc
index bcc7145ca0778fa7097db66b4fd77e638b3101f1..0bf298bf8cd58f5ddd65a50a5c73d9594e6955c2 100644
--- a/chrome/browser/content_settings/permission_queue_controller.cc
+++ b/chrome/browser/content_settings/permission_queue_controller.cc
@@ -7,6 +7,7 @@
#include "base/prefs/pref_service.h"
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/content_settings/permission_context_uma_util.h"
+#include "chrome/browser/durable_storage_permission_infobar_delegate.h"
#include "chrome/browser/geolocation/geolocation_infobar_delegate.h"
#include "chrome/browser/infobars/infobar_service.h"
#include "chrome/browser/media/midi_permission_infobar_delegate.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;

Powered by Google App Engine
This is Rietveld 408576698