[autofill] Query credit card scanning feature once per browser process.
commitf159055ebd535230ccd05791c9852c5d558248ed
authorrouslan <rouslan@chromium.org>
Mon, 9 Mar 2015 17:35:20 +0000 (9 10:35 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 9 Mar 2015 17:36:02 +0000 (9 17:36 +0000)
treeaee6b3a670b6a883a25f1dde86d59df0de0d87ca
parentb3b2462b4e45fb1722b577415bcb62b1e27ce4aa
[autofill] Query credit card scanning feature once per browser process.

Checking whether credit card scanning is possible can be an expensive
operation. The result of this call is unlikely to change during the
lifetime of a browser process. This patch will query credit card
scanning feature once when the user types in a credit card input field
for the first time. Restarting the browser process is necessary to clear
the cache.

BUG=461944

Review URL: https://codereview.chromium.org/990463002

Cr-Commit-Position: refs/heads/master@{#319670}
chrome/browser/ui/autofill/credit_card_scanner_controller.cc