commit | 24cc123f703b7fdefe9c98e66f0389b1c9b27c91 | [log] [tgz] |
---|---|---|
author | Varun Khaneja <[email protected]> | Thu May 14 21:08:48 2020 |
committer | Commit Bot <[email protected]> | Thu May 14 21:08:48 2020 |
tree | 2c29e296f549ab2450b2c14aff9ecb2c220e6fb2 | |
parent | 235fe143958b4d24997927cdb5df96f451006f91 [diff] [blame] |
Disable real-time checks for certain locations. Instead of excluding countries using Finch params, add that list in client code. See the associated bug for more context. R=xinghuilu Fixed: 1064457 Change-Id: Ic4a8d7be4c66ad2b6e3de71186906e48d2ec3462 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2195647 Commit-Queue: Steven Holte <[email protected]> Reviewed-by: Steven Holte <[email protected]> Reviewed-by: Xinghui Lu <[email protected]> Auto-Submit: Varun Khaneja <[email protected]> Cr-Commit-Position: refs/heads/master@{#768966}
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc index dd86e2e..7a164a05 100644 --- a/chrome/browser/chrome_content_browser_client.cc +++ b/chrome/browser/chrome_content_browser_client.cc
@@ -4298,7 +4298,8 @@ // |safe_browsing_service_| may be unavailable in tests. safe_browsing_service_ && safe_browsing::RealTimePolicyEngine::CanPerformFullURLLookup( - profile->GetPrefs(), profile->IsOffTheRecord()) + profile->GetPrefs(), profile->IsOffTheRecord(), + g_browser_process->variations_service()) ? safe_browsing::RealTimeUrlLookupServiceFactory::GetForProfile( profile) : nullptr;