diff options
author | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-04 19:35:33 +0000 |
---|---|---|
committer | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-04 19:35:33 +0000 |
commit | 698f7f43984b1acbc74b0a64fd2205a3ff4efe07 (patch) | |
tree | 91f75dcb443d2d2b861998d091f2dda0706b2056 /chrome/browser/automation | |
parent | fca868203103ef3d0accbe6dded134364dc222f3 (diff) | |
download | chromium_src-698f7f43984b1acbc74b0a64fd2205a3ff4efe07.zip chromium_src-698f7f43984b1acbc74b0a64fd2205a3ff4efe07.tar.gz chromium_src-698f7f43984b1acbc74b0a64fd2205a3ff4efe07.tar.bz2 |
Rename GetStringAsUTF16() to GetString() (and overload), etc.
Also do some drive-by wstring/wchar_t -> string/char changes (in addition to the
necessary ones).
BUG=none
TEST=builds and tests pass
Review URL: http://codereview.chromium.org/3091005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54944 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/automation')
-rw-r--r-- | chrome/browser/automation/automation_provider.cc | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/chrome/browser/automation/automation_provider.cc b/chrome/browser/automation/automation_provider.cc index e65d166..8f3e136 100644 --- a/chrome/browser/automation/automation_provider.cc +++ b/chrome/browser/automation/automation_provider.cc @@ -2555,13 +2555,13 @@ webkit_glue::PasswordForm GetPasswordFormFromDict( // We don't care if any of these fail - they are either optional or checked // before this function is called. password_dict.GetString("signon_realm", &signon_realm); - password_dict.GetStringAsUTF16("username_value", &username_value); - password_dict.GetStringAsUTF16("password_value", &password_value); - password_dict.GetStringAsUTF16("origin_url", &origin_url_text); - password_dict.GetStringAsUTF16("username_element", &username_element); - password_dict.GetStringAsUTF16("password_element", &password_element); - password_dict.GetStringAsUTF16("submit_element", &submit_element); - password_dict.GetStringAsUTF16("action_target", &action_target_text); + password_dict.GetString("username_value", &username_value); + password_dict.GetString("password_value", &password_value); + password_dict.GetString("origin_url", &origin_url_text); + password_dict.GetString("username_element", &username_element); + password_dict.GetString("password_element", &password_element); + password_dict.GetString("submit_element", &submit_element); + password_dict.GetString("action_target", &action_target_text); password_dict.GetBoolean("blacklist", &blacklist); GURL origin_gurl(origin_url_text); @@ -3130,7 +3130,8 @@ std::vector<AutoFillProfile> AutomationProvider::GetAutoFillProfilesFromList( autofill_type_to_string.begin(); type_it != autofill_type_to_string.end(); ++type_it) { if (profile_info->HasKey(type_it->second)) { - if (profile_info->GetStringAsUTF16(type_it->second, ¤t_value)) { + if (profile_info->GetString(WideToUTF8(type_it->second), + ¤t_value)) { profile.SetInfo(AutoFillType(type_it->first), current_value); } else { *error_message= "All values must be strings"; @@ -3164,7 +3165,7 @@ std::vector<CreditCard> AutomationProvider::GetCreditCardsFromList( credit_card_type_to_string.begin(); type_it != credit_card_type_to_string.end(); ++type_it) { if (card_info->HasKey(type_it->second)) { - if (card_info->GetStringAsUTF16(type_it->second, ¤t_value)) { + if (card_info->GetString(WideToUTF8(type_it->second), ¤t_value)) { card.SetInfo(AutoFillType(type_it->first), current_value); } else { *error_message= "All values must be strings"; |