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

Unified Diff: chrome/browser/automation/testing_automation_provider.cc

Issue 10837044: Correct const accessors in base/values.(h|cc), Part II (ListValue) (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: David's comments Created 8 years, 4 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 | « base/values.cc ('k') | chrome/browser/bookmarks/bookmark_codec.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/testing_automation_provider.cc
diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc
index 6c52b928d8f4856e281c4f1b05ddb5e3dc1d84c1..adb651d306947ec37467e07d185592bd1c8bb85b 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, &current_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 =
« no previous file with comments | « base/values.cc ('k') | chrome/browser/bookmarks/bookmark_codec.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698