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

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

Issue 1930002: AutoFill profile shouldn't be saved when cancelled during initial setup. (Closed)
Patch Set: Addressing review comments. Polishing unit test comments. Created 10 years, 8 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/personal_data_manager.h ('k') | chrome/browser/cocoa/browser_test_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/personal_data_manager.cc
diff --git a/chrome/browser/autofill/personal_data_manager.cc b/chrome/browser/autofill/personal_data_manager.cc
index 254fd0689a41301ae40707a137f62f50f8468ff6..073009ec7264be64cd5b2e560e70b5795fb8fd15 100644
--- a/chrome/browser/autofill/personal_data_manager.cc
+++ b/chrome/browser/autofill/personal_data_manager.cc
@@ -234,6 +234,22 @@ void PersonalDataManager::SaveImportedFormData() {
}
}
+void PersonalDataManager::GetImportedFormData(AutoFillProfile** profile,
+ CreditCard** credit_card) {
+ DCHECK(profile);
+ DCHECK(credit_card);
+
+ if (imported_profile_.get()) {
+ imported_profile_->set_label(ASCIIToUTF16(kUnlabeled));
+ }
+ *profile = imported_profile_.get();
+
+ if (imported_credit_card_.get()) {
+ imported_credit_card_->set_label(ASCIIToUTF16(kUnlabeled));
+ }
+ *credit_card = imported_credit_card_.get();
+}
+
void PersonalDataManager::SetProfiles(std::vector<AutoFillProfile>* profiles) {
if (profile_->IsOffTheRecord())
return;
« no previous file with comments | « chrome/browser/autofill/personal_data_manager.h ('k') | chrome/browser/cocoa/browser_test_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698