diff options
author | Kristian Monsen <kristianm@google.com> | 2011-06-06 13:23:18 +0100 |
---|---|---|
committer | Kristian Monsen <kristianm@google.com> | 2011-06-14 20:31:43 -0700 |
commit | 524596c170ca89845ddafde334e4920512478e93 (patch) | |
tree | ff9008787dc3fc0324e407fa06a283842e7ca7d3 /chrome/browser/autofill | |
parent | 8d015ec3759624dc88b69752de43dc2007329518 (diff) | |
download | external_chromium-524596c170ca89845ddafde334e4920512478e93.zip external_chromium-524596c170ca89845ddafde334e4920512478e93.tar.gz external_chromium-524596c170ca89845ddafde334e4920512478e93.tar.bz2 |
Merge Chromium at r11.0.672.0: Fix conflicts in personal_data_manager.cc
Added extra argument to function close to local edit in two places:
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/autofill/personal_data_manager.cc?view=diff&pathrev=74924&r1=73869&r2=73870
Function removed closed to local edit:
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/autofill/personal_data_manager.cc?r1=73660&r2=73870&pathrev=74924
Not sure why the last conflict got there, but must be caused by this CL:
http://src.chromium.org/viewvc/chrome/trunk/src/chrome/browser/autofill/personal_data_manager.cc?view=diff&pathrev=74924&r1=74209&r2=74210
Change-Id: Ia2d53e01c519f0a6f4bc4a56486959e3e55a8b21
Diffstat (limited to 'chrome/browser/autofill')
-rw-r--r-- | chrome/browser/autofill/personal_data_manager.cc | 37 |
1 files changed, 6 insertions, 31 deletions
diff --git a/chrome/browser/autofill/personal_data_manager.cc b/chrome/browser/autofill/personal_data_manager.cc index 8409fc7..6dd5d17 100644 --- a/chrome/browser/autofill/personal_data_manager.cc +++ b/chrome/browser/autofill/personal_data_manager.cc @@ -163,20 +163,16 @@ void PersonalDataManager::RemoveObserver( } bool PersonalDataManager::ImportFormData( -<<<<<<< HEAD - const std::vector<FormStructure*>& form_structures) { + const std::vector<const FormStructure*>& form_structures, + const CreditCard** imported_credit_card) { #ifdef ANDROID // TODO: Is this the funcionality that tries to create a profile for the user // based on what they've entered into forms? return false; #else -======= - const std::vector<const FormStructure*>& form_structures, - const CreditCard** imported_credit_card) { scoped_ptr<AutoFillProfile> imported_profile(new AutoFillProfile); scoped_ptr<CreditCard> local_imported_credit_card(new CreditCard); ->>>>>>> chromium.org at r11.0.672.0 // Parse the form and construct a profile based on the information that is // possible to import. int importable_fields = 0; @@ -302,21 +298,8 @@ bool PersonalDataManager::ImportFormData( } *imported_credit_card = local_imported_credit_card.release(); -<<<<<<< HEAD - return imported_profile_.get() || imported_credit_card_.get(); -#endif -} - -void PersonalDataManager::GetImportedFormData(AutoFillProfile** profile, - CreditCard** credit_card) { - DCHECK(profile); - DCHECK(credit_card); - - *profile = imported_profile_.get(); - *credit_card = imported_credit_card_.get(); -======= return imported_profile.get() || *imported_credit_card; ->>>>>>> chromium.org at r11.0.672.0 +#endif } void PersonalDataManager::SetProfiles(std::vector<AutoFillProfile>* profiles) { @@ -784,20 +767,17 @@ void PersonalDataManager::SetUniqueCreditCardLabels( } } -<<<<<<< HEAD -void PersonalDataManager::SaveImportedProfile() { +void PersonalDataManager::SaveImportedProfile( + const AutoFillProfile& imported_profile) { #ifdef ANDROID // TODO: This should update the profile in Java land. return; #else -======= -void PersonalDataManager::SaveImportedProfile( - const AutoFillProfile& imported_profile) { ->>>>>>> chromium.org at r11.0.672.0 if (profile_->IsOffTheRecord()) return; AddProfile(imported_profile); +#endif } bool PersonalDataManager::MergeProfile( @@ -829,10 +809,6 @@ bool PersonalDataManager::MergeProfile( merged_profiles->push_back(**iter); } -<<<<<<< HEAD - AddProfile(*imported_profile_); -#endif -======= // The second preference, if not merged above, is to alter non-primary values // where the primary values match. // Again, only merge with the first match. @@ -858,7 +834,6 @@ bool PersonalDataManager::MergeProfile( merged_profiles->push_back(profile); return merged; ->>>>>>> chromium.org at r11.0.672.0 } |