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/extensions/extension_omnibox_api.cc | |
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/extensions/extension_omnibox_api.cc')
-rw-r--r-- | chrome/browser/extensions/extension_omnibox_api.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/chrome/browser/extensions/extension_omnibox_api.cc b/chrome/browser/extensions/extension_omnibox_api.cc index c4845a6..89ed86c 100644 --- a/chrome/browser/extensions/extension_omnibox_api.cc +++ b/chrome/browser/extensions/extension_omnibox_api.cc @@ -25,11 +25,11 @@ const char kDescriptionStylesLengthError[] = "Suggestion descriptionStyles contains an offset longer than the" " description text"; -const wchar_t kSuggestionContent[] = L"content"; -const wchar_t kSuggestionDescription[] = L"description"; -const wchar_t kSuggestionDescriptionStyles[] = L"descriptionStyles"; -const wchar_t kDescriptionStylesType[] = L"type"; -const wchar_t kDescriptionStylesOffset[] = L"offset"; +const char kSuggestionContent[] = "content"; +const char kSuggestionDescription[] = "description"; +const char kSuggestionDescriptionStyles[] = "descriptionStyles"; +const char kDescriptionStylesType[] = "type"; +const char kDescriptionStylesOffset[] = "offset"; }; // namespace // static @@ -101,9 +101,9 @@ bool OmniboxSendSuggestionsFunction::RunImpl() { DictionaryValue* suggestion_value; EXTENSION_FUNCTION_VALIDATE(suggestions_value->GetDictionary( i, &suggestion_value)); - EXTENSION_FUNCTION_VALIDATE(suggestion_value->GetStringAsUTF16( + EXTENSION_FUNCTION_VALIDATE(suggestion_value->GetString( kSuggestionContent, &suggestion.content)); - EXTENSION_FUNCTION_VALIDATE(suggestion_value->GetStringAsUTF16( + EXTENSION_FUNCTION_VALIDATE(suggestion_value->GetString( kSuggestionDescription, &suggestion.description)); if (suggestion_value->HasKey(kSuggestionDescriptionStyles)) { |