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

Unified Diff: chrome/browser/usb/usb_chooser_context.cc

Issue 1427433017: Add a "guard" content settings type for chooser permissions. Base URL: https://chromium.googlesource.com/chromium/src.git@permission_store
Patch Set: Created 5 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: chrome/browser/usb/usb_chooser_context.cc
diff --git a/chrome/browser/usb/usb_chooser_context.cc b/chrome/browser/usb/usb_chooser_context.cc
index 00db0a4ae1d0fb1bed203b72ec168ee2fdde47e4..36a6a58e618e4b52f9434d9d31f1dcffea7ed992 100644
--- a/chrome/browser/usb/usb_chooser_context.cc
+++ b/chrome/browser/usb/usb_chooser_context.cc
@@ -49,6 +49,7 @@ const base::DictionaryValue* FindForDevice(
UsbChooserContext::UsbChooserContext(Profile* profile)
: ChooserContextBase(profile,
+ CONTENT_SETTINGS_TYPE_USB,
CONTENT_SETTINGS_TYPE_USB_CHOOSER_DATA),
observer_(this) {
usb_service_ = device::DeviceClient::Get()->GetUsbService();

Powered by Google App Engine
This is Rietveld 408576698