diff options
author | vabr@chromium.org <vabr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-03 08:43:37 +0000 |
---|---|---|
committer | vabr@chromium.org <vabr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-03 08:43:37 +0000 |
commit | 5d30f92bf4e9f055d44ea0db2327b036ae41eef6 (patch) | |
tree | e4237d83ef224e420140e6411ac84f60216555d1 /chrome/browser/automation | |
parent | 4ccaee6820cb8ac79581141a4f2463a2abb38442 (diff) | |
download | chromium_src-5d30f92bf4e9f055d44ea0db2327b036ae41eef6.zip chromium_src-5d30f92bf4e9f055d44ea0db2327b036ae41eef6.tar.gz chromium_src-5d30f92bf4e9f055d44ea0db2327b036ae41eef6.tar.bz2 |
Correct const accessors in base/values.(h|cc), Part II (ListValue)
For problem description and other info please see the BUG page.
This is for ListValue.
BUG=138946
TEST=N/A (no fix & no new feature)
TBR=jar,zelidrag,scottbyer,mpcomplete,darin,achuith,sky,estade,atwilson,grt,thakis,jamesr,hans,sadrul,pastarmovj
Review URL: https://chromiumcodereview.appspot.com/10837044
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149819 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/automation')
-rw-r--r-- | chrome/browser/automation/testing_automation_provider.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc index 6c52b92..adb651d 100644 --- a/chrome/browser/automation/testing_automation_provider.cc +++ b/chrome/browser/automation/testing_automation_provider.cc @@ -5194,8 +5194,8 @@ std::vector<AutofillProfile> TestingAutomationProvider::GetAutofillProfilesFromList( const ListValue& profiles, std::string* error_message) { std::vector<AutofillProfile> autofill_profiles; - DictionaryValue* profile_info = NULL; - ListValue* current_value = NULL; + const DictionaryValue* profile_info = NULL; + const ListValue* current_value = NULL; std::map<AutofillFieldType, std::string> autofill_type_to_string = GetAutofillFieldToStringMap(); @@ -5211,7 +5211,7 @@ TestingAutomationProvider::GetAutofillProfilesFromList( if (profile_info->HasKey(type_it->second)) { if (profile_info->GetList(type_it->second, ¤t_value)) { std::vector<string16> value_list; - for (ListValue::iterator list_it = current_value->begin(); + for (ListValue::const_iterator list_it = current_value->begin(); list_it != current_value->end(); ++list_it) { string16 value; if ((*list_it)->GetAsString(&value)) { @@ -5237,7 +5237,7 @@ TestingAutomationProvider::GetAutofillProfilesFromList( std::vector<CreditCard> TestingAutomationProvider::GetCreditCardsFromList( const ListValue& cards, std::string* error_message) { std::vector<CreditCard> credit_cards; - DictionaryValue* card_info = NULL; + const DictionaryValue* card_info = NULL; string16 current_value; std::map<AutofillFieldType, std::string> credit_card_type_to_string = |