safe_browsing-disable-reporting-of-safebrowsing-over.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. From c89ce946e5328ca8a7df923d421e904bb6bfe9b6 Mon Sep 17 00:00:00 2001
  2. From: Jan Engelhardt <jengelh@inai.de>
  3. Date: Tue, 7 Jul 2015 18:28:46 +0200
  4. Subject: [PATCH 63/76] safe_browsing: disable reporting of safebrowsing
  5. override
  6. Disables reporting of the safebrowsing override, i.e. the report sent
  7. if a user decides to visit a page that was flagged as "insecure".
  8. This prevents trk:148 (phishing) and trk:149 (malware).
  9. ---
  10. components/safe_browsing/content/browser/client_side_detection_service.cc | 5 +++++
  11. 1 file changed, 5 insertions(+)
  12. --- a/components/safe_browsing/content/browser/client_side_detection_service.cc
  13. +++ b/components/safe_browsing/content/browser/client_side_detection_service.cc
  14. @@ -207,6 +207,10 @@ void ClientSideDetectionService::StartCl
  15. return;
  16. }
  17. +#if 1
  18. + if (!callback.is_null())
  19. + callback.Run(GURL(request->url()), false);
  20. +#else
  21. // Fill in metadata about which model we used.
  22. *request->mutable_population() = delegate_->GetUserPopulation();
  23. @@ -286,6 +290,7 @@ void ClientSideDetectionService::StartCl
  24. base::BindOnce(&WebUIInfoSingleton::AddToClientPhishingRequestsSent,
  25. base::Unretained(WebUIInfoSingleton::GetInstance()),
  26. std::move(request), access_token));
  27. +#endif
  28. }
  29. void ClientSideDetectionService::HandlePhishingVerdict(