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

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: 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 | « no previous file | chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc » ('j') | 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 abd616f0cb3be6b12478acfb72beb9bfae2360c8..6543680c8598c04eca4c637bedd1d0f222dec6c1 100644
--- a/chrome/browser/ui/autofill/card_unmask_prompt_controller_impl.cc
+++ b/chrome/browser/ui/autofill/card_unmask_prompt_controller_impl.cc
@@ -90,6 +90,10 @@ void CardUnmaskPromptControllerImpl::OnUnmaskResponse(
const base::string16& exp_month,
const base::string16& exp_year,
bool should_store_pan) {
+#if defined(OS_LINUX)
please use gerrit instead 2015/03/17 20:30:45 I've seen code that checks for OS_LINUX && !OS_CHR
Evan Stade 2015/03/17 22:24:34 good point. I've changed tactics though. I added a
+ DCHECK(!should_store_pan);
+#endif
+
card_unmask_view_->DisableAndWaitForVerification();
DCHECK(!cvc.empty());
@@ -142,8 +146,6 @@ bool CardUnmaskPromptControllerImpl::ShouldRequestExpirationDate() const {
}
bool CardUnmaskPromptControllerImpl::GetStoreLocallyStartState() const {
- // TODO(estade): Don't even offer to save on Linux? Offer to save but
- // default to false?
PrefService* prefs =
user_prefs::UserPrefs::Get(web_contents_->GetBrowserContext());
return prefs->GetBoolean(prefs::kAutofillWalletImportStorageCheckboxState);
« no previous file with comments | « no previous file | chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698