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

Unified Diff: chrome/browser/dom_ui/labs_ui.cc

Issue 3817004: Rename about:labs to about:flags, step 1/3 (Closed)
Patch Set: Created 10 years, 2 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/dom_ui/labs_ui.cc
diff --git a/chrome/browser/dom_ui/labs_ui.cc b/chrome/browser/dom_ui/labs_ui.cc
index 2e65a297cd04f407fc89e3f7438c347ed3a2ef36..dccded46ee506e987ee4d974056bc81dcad17e6b 100644
--- a/chrome/browser/dom_ui/labs_ui.cc
+++ b/chrome/browser/dom_ui/labs_ui.cc
@@ -36,7 +36,7 @@ namespace {
class LabsUIHTMLSource : public ChromeURLDataManager::DataSource {
public:
LabsUIHTMLSource()
- : DataSource(chrome::kChromeUILabsHost, MessageLoop::current()) {}
+ : DataSource(chrome::kChromeUIFlagsHost, MessageLoop::current()) {}
// Called when the network layer has requested a resource underneath
// the path we registered.
@@ -54,30 +54,32 @@ class LabsUIHTMLSource : public ChromeURLDataManager::DataSource {
};
void LabsUIHTMLSource::StartDataRequest(const std::string& path,
- bool is_off_the_record,
- int request_id) {
+ bool is_off_the_record,
+ int request_id) {
// Strings used in the JsTemplate file.
DictionaryValue localized_strings;
localized_strings.SetString("labsTitle",
- l10n_util::GetStringUTF16(IDS_LABS_TITLE));
+ l10n_util::GetStringUTF16(IDS_FLAGS_TITLE));
localized_strings.SetString("labsLongTitle",
- l10n_util::GetStringUTF16(IDS_LABS_LONG_TITLE));
+ l10n_util::GetStringUTF16(IDS_FLAGS_LONG_TITLE));
localized_strings.SetString("labsTableTitle",
- l10n_util::GetStringUTF16(IDS_LABS_TABLE_TITLE));
+ l10n_util::GetStringUTF16(IDS_FLAGS_TABLE_TITLE));
localized_strings.SetString("labsNoExperimentsAvailable",
- l10n_util::GetStringUTF16(IDS_LABS_NO_EXPERIMENTS_AVAILABLE));
+ l10n_util::GetStringUTF16(IDS_FLAGS_NO_EXPERIMENTS_AVAILABLE));
+ localized_strings.SetString("flagsWarningHeader", l10n_util::GetStringUTF16(
+ IDS_FLAGS_WARNING_HEADER));
localized_strings.SetString("labsBlurb", l10n_util::GetStringFUTF16(
- IDS_LABS_BLURB,
+ IDS_FLAGS_WARNING_TEXT,
l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)));
localized_strings.SetString("labsRestartNotice", l10n_util::GetStringFUTF16(
- IDS_LABS_RESTART_NOTICE,
+ IDS_FLAGS_RESTART_NOTICE,
l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)));
localized_strings.SetString("labsRestartButton",
- l10n_util::GetStringUTF16(IDS_LABS_RESTART_BUTTON));
+ l10n_util::GetStringUTF16(IDS_FLAGS_RESTART_BUTTON));
localized_strings.SetString("disable",
- l10n_util::GetStringUTF16(IDS_LABS_DISABLE));
+ l10n_util::GetStringUTF16(IDS_FLAGS_DISABLE));
localized_strings.SetString("enable",
- l10n_util::GetStringUTF16(IDS_LABS_ENABLE));
+ l10n_util::GetStringUTF16(IDS_FLAGS_ENABLE));
ChromeURLDataManager::DataSource::SetFontAndTextDirection(&localized_strings);

Powered by Google App Engine
This is Rietveld 408576698