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() { |