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

Unified Diff: chrome/browser/autofill/autofill_manager.cc

Issue 3413026: Landing r60095 to the M7 branch.... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/517/src/
Patch Set: Created 10 years, 3 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 | « chrome/browser/autofill/autofill_manager.h ('k') | chrome/browser/translate/translate_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_manager.cc
===================================================================
--- chrome/browser/autofill/autofill_manager.cc (revision 60095)
+++ chrome/browser/autofill/autofill_manager.cc (working copy)
@@ -438,11 +438,16 @@
CreditCard* credit_card;
personal_data_->GetImportedFormData(&profile, &credit_card);
- if (credit_card) {
- cc_infobar_.reset(new AutoFillCCInfoBarDelegate(tab_contents_, this));
- } else {
+ if (!credit_card) {
UploadFormData();
+ return;
}
+
+ // Show an infobar to offer to save the credit card info.
+ if (tab_contents_) {
+ tab_contents_->AddInfoBar(new AutoFillCCInfoBarDelegate(tab_contents_,
+ this));
+ }
}
void AutoFillManager::UploadFormData() {
« no previous file with comments | « chrome/browser/autofill/autofill_manager.h ('k') | chrome/browser/translate/translate_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698