| Index: chrome/browser/safe_browsing/ui_manager.cc
|
| diff --git a/chrome/browser/safe_browsing/ui_manager.cc b/chrome/browser/safe_browsing/ui_manager.cc
|
| index ab4769e7a7ac95a4c70ff1efb2802faf3f31af3c..978d309f47f66d292265c5e25f101528061e86fe 100644
|
| --- a/chrome/browser/safe_browsing/ui_manager.cc
|
| +++ b/chrome/browser/safe_browsing/ui_manager.cc
|
| @@ -283,12 +283,13 @@ void SafeBrowsingUIManager::ReportInvalidCertificateChain(
|
| void SafeBrowsingUIManager::ReportPermissionAction(
|
| const GURL& origin,
|
| content::PermissionType permission,
|
| - PermissionAction action) {
|
| + PermissionAction action,
|
| + PermissionSourceUI source_ui) {
|
| DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
| BrowserThread::PostTask(
|
| BrowserThread::IO, FROM_HERE,
|
| base::Bind(&SafeBrowsingUIManager::ReportPermissionActionOnIOThread, this,
|
| - origin, permission, action));
|
| + origin, permission, action, source_ui));
|
| }
|
|
|
| void SafeBrowsingUIManager::AddObserver(Observer* observer) {
|
| @@ -316,7 +317,8 @@ void SafeBrowsingUIManager::ReportInvalidCertificateChainOnIOThread(
|
| void SafeBrowsingUIManager::ReportPermissionActionOnIOThread(
|
| const GURL& origin,
|
| content::PermissionType permission,
|
| - PermissionAction action) {
|
| + PermissionAction action,
|
| + PermissionSourceUI source_ui) {
|
| DCHECK_CURRENTLY_ON(BrowserThread::IO);
|
|
|
| // The service may delete the ping manager (i.e. when user disabling service,
|
| @@ -325,7 +327,7 @@ void SafeBrowsingUIManager::ReportPermissionActionOnIOThread(
|
| return;
|
|
|
| sb_service_->ping_manager()->ReportPermissionAction(origin, permission,
|
| - action);
|
| + action, source_ui);
|
| }
|
|
|
| // If the user had opted-in to send ThreatDetails, this gets called
|
|
|