| Index: chrome/browser/sync/test/integration/autofill_helper.cc
|
| diff --git a/chrome/browser/sync/test/integration/autofill_helper.cc b/chrome/browser/sync/test/integration/autofill_helper.cc
|
| index b02a42c838c1ac6121e40c6be615051c76bcc266..0fe79fd5997002d2c2591a687b94e3587b2e41cb 100644
|
| --- a/chrome/browser/sync/test/integration/autofill_helper.cc
|
| +++ b/chrome/browser/sync/test/integration/autofill_helper.cc
|
| @@ -315,7 +315,8 @@ void SetCreditCards(int profile, std::vector<CreditCard>* credit_cards) {
|
| }
|
|
|
| void AddProfile(int profile, const AutofillProfile& autofill_profile) {
|
| - const std::vector<AutofillProfile*>& all_profiles = GetAllProfiles(profile);
|
| + const std::vector<AutofillProfile*>& all_profiles =
|
| + GetAllAutoFillProfiles(profile);
|
| std::vector<AutofillProfile> autofill_profiles;
|
| for (size_t i = 0; i < all_profiles.size(); ++i)
|
| autofill_profiles.push_back(*all_profiles[i]);
|
| @@ -324,7 +325,8 @@ void AddProfile(int profile, const AutofillProfile& autofill_profile) {
|
| }
|
|
|
| void RemoveProfile(int profile, const std::string& guid) {
|
| - const std::vector<AutofillProfile*>& all_profiles = GetAllProfiles(profile);
|
| + const std::vector<AutofillProfile*>& all_profiles =
|
| + GetAllAutoFillProfiles(profile);
|
| std::vector<AutofillProfile> autofill_profiles;
|
| for (size_t i = 0; i < all_profiles.size(); ++i) {
|
| if (all_profiles[i]->guid() != guid)
|
| @@ -337,7 +339,8 @@ void UpdateProfile(int profile,
|
| const std::string& guid,
|
| const AutofillType& type,
|
| const base::string16& value) {
|
| - const std::vector<AutofillProfile*>& all_profiles = GetAllProfiles(profile);
|
| + const std::vector<AutofillProfile*>& all_profiles =
|
| + GetAllAutoFillProfiles(profile);
|
| std::vector<AutofillProfile> profiles;
|
| for (size_t i = 0; i < all_profiles.size(); ++i) {
|
| profiles.push_back(*all_profiles[i]);
|
| @@ -347,7 +350,7 @@ void UpdateProfile(int profile,
|
| autofill_helper::SetProfiles(profile, &profiles);
|
| }
|
|
|
| -const std::vector<AutofillProfile*>& GetAllProfiles(
|
| +const std::vector<AutofillProfile*>& GetAllAutoFillProfiles(
|
| int profile) {
|
| MockPersonalDataManagerObserver observer;
|
| EXPECT_CALL(observer, OnPersonalDataChanged()).
|
| @@ -361,7 +364,7 @@ const std::vector<AutofillProfile*>& GetAllProfiles(
|
| }
|
|
|
| int GetProfileCount(int profile) {
|
| - return GetAllProfiles(profile).size();
|
| + return GetAllAutoFillProfiles(profile).size();
|
| }
|
|
|
| int GetKeyCount(int profile) {
|
| @@ -409,9 +412,9 @@ bool ProfilesMatchImpl(
|
|
|
| bool ProfilesMatch(int profile_a, int profile_b) {
|
| const std::vector<AutofillProfile*>& autofill_profiles_a =
|
| - GetAllProfiles(profile_a);
|
| + GetAllAutoFillProfiles(profile_a);
|
| const std::vector<AutofillProfile*>& autofill_profiles_b =
|
| - GetAllProfiles(profile_b);
|
| + GetAllAutoFillProfiles(profile_b);
|
| return ProfilesMatchImpl(
|
| profile_a, autofill_profiles_a, profile_b, autofill_profiles_b);
|
| }
|
|
|