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;