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

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

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: 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/media_stream_devices_controller.cc
diff --git a/chrome/browser/media/media_stream_devices_controller.cc b/chrome/browser/media/media_stream_devices_controller.cc
index 8995a288f6f048a886b8ebdd4f77ae328890427f..1a895b7eb581ac16d3a6bac1949fb71e41d2f7ef 100644
--- a/chrome/browser/media/media_stream_devices_controller.cc
+++ b/chrome/browser/media/media_stream_devices_controller.cc
@@ -72,14 +72,17 @@ bool ContentTypeIsRequested(content::PermissionType type,
}
using PermissionActionCallback =
- base::Callback<void(content::PermissionType, const GURL&, Profile*)>;
+ base::Callback<void(content::PermissionType, bool, const GURL&, Profile*)>;
raymes 2016/07/18 07:31:59 nit: bool /* user_gesture */
stefanocs 2016/07/18 07:40:25 Done.
void RecordSinglePermissionAction(const content::MediaStreamRequest& request,
content::PermissionType permission_type,
Profile* profile,
PermissionActionCallback callback) {
if (ContentTypeIsRequested(permission_type, request)) {
- callback.Run(permission_type, request.security_origin, profile);
+ // TODO(stefanocs): Pass the actual |user_gesture| once this file has been
+ // refactored into PermissionContext.
+ callback.Run(permission_type, false /* user_gesture */,
+ request.security_origin, profile);
}
}

Powered by Google App Engine
This is Rietveld 408576698