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

Unified Diff: chrome/browser/extensions/extension_omnibox_api.cc

Issue 3091005: Rename GetStringAsUTF16() to GetString() (and overload), etc. (Closed)
Patch Set: Created 10 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
Index: chrome/browser/extensions/extension_omnibox_api.cc
diff --git a/chrome/browser/extensions/extension_omnibox_api.cc b/chrome/browser/extensions/extension_omnibox_api.cc
index c4845a646e7fe65b9c7dc411742830fa5fea3621..89ed86c0833edc707351444234c28fcb23d6dcb3 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)) {
« no previous file with comments | « chrome/browser/extensions/extension_history_api_constants.cc ('k') | chrome/browser/geolocation/access_token_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698