Factor out IsGoogleDomain to google_util::IsGoogleRelevantUrl
AutofillDownloadManager calls variations::ShouldAppendVariationsHeader() to know if the specified URL is trusted by Google. But this call has a side effect to record histograms, and results in double counting for those uses. This patch factors out Google trusted URL checks into google_util, and change variations:: and AutofillDownloadManager to call google_util::IsGoogleRelevantUrl for each slightly different purpose. Bug: None Change-Id: I66dc666011e4cc57327e06889adaeb2828ac6232 Tbr: mahmadi@chromium.org Reviewed-on: https://chromium-review.googlesource.com/c/1451504 Commit-Queue: Takashi Toyoshima <toyoshim@chromium.org> Reviewed-by:Ilya Sherman <isherman@chromium.org> Reviewed-by:
Alexei Svitkine <asvitkine@chromium.org> Cr-Commit-Position: refs/heads/master@{#629922}
Showing
Please register or sign in to comment