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

Unified Diff: chrome/browser/media/protected_media_identifier_infobar_delegate_android.cc

Issue 2154033003: Add gesture type value from infobar to permission report (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add-user-gesture-from-permission-layer-to-permission-report
Patch Set: nit Created 4 years, 5 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/media/protected_media_identifier_infobar_delegate_android.cc
diff --git a/chrome/browser/media/protected_media_identifier_infobar_delegate_android.cc b/chrome/browser/media/protected_media_identifier_infobar_delegate_android.cc
index a8de6ff74b244b58e9e63cd77168a2028f5b38f2..621d4313b75e2bd5e565594ace66305e036b6e87 100644
--- a/chrome/browser/media/protected_media_identifier_infobar_delegate_android.cc
+++ b/chrome/browser/media/protected_media_identifier_infobar_delegate_android.cc
@@ -16,23 +16,26 @@
infobars::InfoBar* ProtectedMediaIdentifierInfoBarDelegateAndroid::Create(
InfoBarService* infobar_service,
const GURL& requesting_frame,
+ bool user_gesture,
Profile* profile,
const PermissionSetCallback& callback) {
return infobar_service->AddInfoBar(infobar_service->CreateConfirmInfoBar(
std::unique_ptr<ConfirmInfoBarDelegate>(
new ProtectedMediaIdentifierInfoBarDelegateAndroid(
- requesting_frame, profile, callback))));
+ requesting_frame, user_gesture, profile, callback))));
}
ProtectedMediaIdentifierInfoBarDelegateAndroid::
ProtectedMediaIdentifierInfoBarDelegateAndroid(
const GURL& requesting_frame,
+ bool user_gesture,
Profile* profile,
const PermissionSetCallback& callback)
: PermissionInfobarDelegate(
requesting_frame,
content::PermissionType::PROTECTED_MEDIA_IDENTIFIER,
CONTENT_SETTINGS_TYPE_PROTECTED_MEDIA_IDENTIFIER,
+ user_gesture,
profile,
callback),
requesting_frame_(requesting_frame) {}

Powered by Google App Engine
This is Rietveld 408576698