| 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 48e6583d48a7fbaa09058a98b7e9c6231bec6d4e..2d69f77abf9e8747b50bff0cd43c5870254fa79e 100644
|
| --- a/chrome/browser/safe_browsing/ui_manager.cc
|
| +++ b/chrome/browser/safe_browsing/ui_manager.cc
|
| @@ -284,12 +284,13 @@ void SafeBrowsingUIManager::ReportInvalidCertificateChain(
|
| void SafeBrowsingUIManager::ReportPermissionAction(
|
| const GURL& origin,
|
| content::PermissionType permission,
|
| - PermissionAction action) {
|
| + PermissionAction action,
|
| + SourceUI 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) {
|
| @@ -317,7 +318,8 @@ void SafeBrowsingUIManager::ReportInvalidCertificateChainOnIOThread(
|
| void SafeBrowsingUIManager::ReportPermissionActionOnIOThread(
|
| const GURL& origin,
|
| content::PermissionType permission,
|
| - PermissionAction action) {
|
| + PermissionAction action,
|
| + SourceUI source_ui) {
|
| DCHECK_CURRENTLY_ON(BrowserThread::IO);
|
|
|
| // The service may delete the ping manager (i.e. when user disabling service,
|
| @@ -326,7 +328,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
|
|
|