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

Side by Side Diff: chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc

Issue 2507363002: MD Settings: Add Hotword (OK Google) section to search_page (Closed)
Patch Set: Self Review Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/settings/md_settings_localized_strings_provide r.h" 5 #include "chrome/browser/ui/webui/settings/md_settings_localized_strings_provide r.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/i18n/number_formatting.h" 10 #include "base/i18n/number_formatting.h"
(...skipping 1336 matching lines...) Expand 10 before | Expand all | Expand 10 after
1347 } 1347 }
1348 1348
1349 void AddSearchStrings(content::WebUIDataSource* html_source) { 1349 void AddSearchStrings(content::WebUIDataSource* html_source) {
1350 LocalizedString localized_strings[] = { 1350 LocalizedString localized_strings[] = {
1351 {"searchPageTitle", IDS_SETTINGS_SEARCH}, 1351 {"searchPageTitle", IDS_SETTINGS_SEARCH},
1352 {"searchExplanation", IDS_SETTINGS_SEARCH_EXPLANATION}, 1352 {"searchExplanation", IDS_SETTINGS_SEARCH_EXPLANATION},
1353 {"searchEnginesManage", IDS_SETTINGS_SEARCH_MANAGE_SEARCH_ENGINES}, 1353 {"searchEnginesManage", IDS_SETTINGS_SEARCH_MANAGE_SEARCH_ENGINES},
1354 {"searchEnginesManageDescription", 1354 {"searchEnginesManageDescription",
1355 IDS_SETTINGS_SEARCH_MANAGE_SEARCH_ENGINES_DESCRIPTION}, 1355 IDS_SETTINGS_SEARCH_MANAGE_SEARCH_ENGINES_DESCRIPTION},
1356 {"searchOkGoogleLabel", IDS_SETTINGS_SEARCH_OK_GOOGLE_LABEL}, 1356 {"searchOkGoogleLabel", IDS_SETTINGS_SEARCH_OK_GOOGLE_LABEL},
1357 {"searchOkGoogleLearnMoreLink", 1357 {"searchOkGoogleSubtextAlwaysOn",
1358 IDS_SETTINGS_SEARCH_OK_GOOGLE_LEARN_MORE_LINK}, 1358 IDS_SETTINGS_SEARCH_OK_GOOGLE_SUBTEXT_ALWAYS_ON},
1359 {"searchOkGoogleDescriptionLabel", 1359 {"searchOkGoogleSubtextNoDsp",
1360 IDS_SETTINGS_SEARCH_OK_GOOGLE_DESCRIPTION_LABEL}, 1360 IDS_SETTINGS_SEARCH_OK_GOOGLE_SUBTEXT_NO_DSP},
1361 {"searchOkGoogleAudioHistoryLabel",
1362 IDS_SETTINGS_SEARCH_OK_GOOGLE_AUDIO_HISTORY_LABEL},
1363 {"searchOkGoogleAudioHistorySubtext",
1364 IDS_SETTINGS_SEARCH_OK_GOOGLE_AUDIO_HISTORY_SUBTEXT},
1365 {"searchOkGoogleRetrain", IDS_SETTINGS_SEARCH_OK_GOOGLE_RETRAIN},
1361 }; 1366 };
1362 AddLocalizedStringsBulk(html_source, localized_strings, 1367 AddLocalizedStringsBulk(html_source, localized_strings,
1363 arraysize(localized_strings)); 1368 arraysize(localized_strings));
1369 html_source->AddString("hotwordLearnMoreUrl",
1370 chrome::kHotwordLearnMoreURL);
1371 html_source->AddString("manageAudioHistoryUrl",
1372 chrome::kManageAudioHistoryURL);
1364 } 1373 }
1365 1374
1366 void AddSearchEnginesStrings(content::WebUIDataSource* html_source) { 1375 void AddSearchEnginesStrings(content::WebUIDataSource* html_source) {
1367 LocalizedString localized_strings[] = { 1376 LocalizedString localized_strings[] = {
1368 {"searchEnginesPageTitle", IDS_SETTINGS_SEARCH_ENGINES}, 1377 {"searchEnginesPageTitle", IDS_SETTINGS_SEARCH_ENGINES},
1369 {"searchEnginesAddSearchEngine", 1378 {"searchEnginesAddSearchEngine",
1370 IDS_SETTINGS_SEARCH_ENGINES_ADD_SEARCH_ENGINE}, 1379 IDS_SETTINGS_SEARCH_ENGINES_ADD_SEARCH_ENGINE},
1371 {"searchEnginesEditSearchEngine", 1380 {"searchEnginesEditSearchEngine",
1372 IDS_SETTINGS_SEARCH_ENGINES_EDIT_SEARCH_ENGINE}, 1381 IDS_SETTINGS_SEARCH_ENGINES_EDIT_SEARCH_ENGINE},
1373 {"searchEnginesNotValid", IDS_SETTINGS_SEARCH_ENGINES_NOT_VALID}, 1382 {"searchEnginesNotValid", IDS_SETTINGS_SEARCH_ENGINES_NOT_VALID},
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
1819 #if defined(USE_NSS_CERTS) 1828 #if defined(USE_NSS_CERTS)
1820 AddCertificateManagerStrings(html_source); 1829 AddCertificateManagerStrings(html_source);
1821 #endif 1830 #endif
1822 1831
1823 policy_indicator::AddLocalizedStrings(html_source); 1832 policy_indicator::AddLocalizedStrings(html_source);
1824 1833
1825 html_source->SetJsonPath(kLocalizedStringsFile); 1834 html_source->SetJsonPath(kLocalizedStringsFile);
1826 } 1835 }
1827 1836
1828 } // namespace settings 1837 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698