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

Unified Diff: components/flags_ui/flags_state.cc

Issue 2774203002: Migrate about:flags messages to const char* (Closed)
Patch Set: fix iOS compilation Created 3 years, 9 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 | « components/flags_ui/feature_entry.cc ('k') | components/flags_ui/flags_state_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/flags_ui/flags_state.cc
diff --git a/components/flags_ui/flags_state.cc b/components/flags_ui/flags_state.cc
index 2e8f1637ef48a0c34512c9d9618b0f57ea862d8a..d89c3629c352f633e5bc6def025d38f6d5acf74c 100644
--- a/components/flags_ui/flags_state.cc
+++ b/components/flags_ui/flags_state.cc
@@ -511,9 +511,9 @@ void FlagsState::GetFlagFeatureEntries(
std::unique_ptr<base::DictionaryValue> data(new base::DictionaryValue());
data->SetString("internal_name", entry.internal_name);
- data->SetString("name", l10n_util::GetStringUTF16(entry.visible_name_id));
+ data->SetString("name", base::StringPiece(entry.visible_name));
data->SetString("description",
- l10n_util::GetStringUTF16(entry.visible_description_id));
+ base::StringPiece(entry.visible_description));
base::ListValue* supported_platforms = new base::ListValue();
AddOsStrings(entry.supported_platforms, supported_platforms);
« no previous file with comments | « components/flags_ui/feature_entry.cc ('k') | components/flags_ui/flags_state_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698