Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(447)

Unified Diff: chrome/browser/ui/autofill/card_unmask_prompt_controller_impl.cc

Issue 1012223002: Add flag to disable full PAN storage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/autofill/card_unmask_prompt_controller_impl.cc
diff --git a/chrome/browser/ui/autofill/card_unmask_prompt_controller_impl.cc b/chrome/browser/ui/autofill/card_unmask_prompt_controller_impl.cc
index 76d0a4f8dd3337f6d47ef9a6579280f4e83dfd41..c63d92ebbea676124a033bb233c45671968f88c6 100644
--- a/chrome/browser/ui/autofill/card_unmask_prompt_controller_impl.cc
+++ b/chrome/browser/ui/autofill/card_unmask_prompt_controller_impl.cc
@@ -211,10 +211,12 @@ bool CardUnmaskPromptControllerImpl::ShouldRequestExpirationDate() const {
}
bool CardUnmaskPromptControllerImpl::CanStoreLocally() const {
- // TODO(estade): Always return false for Linux. See
- // https://codereview.chromium.org/1012223002/
+#if defined(ENABLE_SAVE_WALLET_CARDS_LOCALLY)
return !Profile::FromBrowserContext(web_contents_->GetBrowserContext())
->IsOffTheRecord();
+#else
+ return false;
+#endif
}
bool CardUnmaskPromptControllerImpl::GetStoreLocallyStartState() const {
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698