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

Unified Diff: chrome/browser/permissions/permission_request_impl.h

Issue 2153133002: Add gesture type value from desktop prompt to permission report (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add-user-gesture-to-reporting-part
Patch Set: rebase 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/permissions/permission_request_impl.h
diff --git a/chrome/browser/permissions/permission_request_impl.h b/chrome/browser/permissions/permission_request_impl.h
index 5b4d34c998e9c1e99daab5f2768466b26cb05df6..0ed96e627cd76cd759aa69d70393b691bc0711da 100644
--- a/chrome/browser/permissions/permission_request_impl.h
+++ b/chrome/browser/permissions/permission_request_impl.h
@@ -26,6 +26,7 @@ class PermissionRequestImpl : public PermissionRequest {
PermissionRequestImpl(
const GURL& request_origin,
content::PermissionType permission_type,
+ bool user_gesture,
Profile* profile,
const PermissionDecidedCallback& permission_decided_callback,
const base::Closure delete_callback);
@@ -51,6 +52,8 @@ class PermissionRequestImpl : public PermissionRequest {
GURL request_origin_;
content::PermissionType permission_type_;
+ // Specify whether there was a user gesture which triggered the request.
+ bool user_gesture_;
Profile* profile_;
// Called once a decision is made about the permission.

Powered by Google App Engine
This is Rietveld 408576698