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

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: Nit Created 4 years 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 1332 matching lines...) Expand 10 before | Expand all | Expand 10 after
1343 } 1343 }
1344 1344
1345 void AddSearchStrings(content::WebUIDataSource* html_source) { 1345 void AddSearchStrings(content::WebUIDataSource* html_source) {
1346 LocalizedString localized_strings[] = { 1346 LocalizedString localized_strings[] = {
1347 {"searchPageTitle", IDS_SETTINGS_SEARCH}, 1347 {"searchPageTitle", IDS_SETTINGS_SEARCH},
1348 {"searchExplanation", IDS_SETTINGS_SEARCH_EXPLANATION}, 1348 {"searchExplanation", IDS_SETTINGS_SEARCH_EXPLANATION},
1349 {"searchEnginesManage", IDS_SETTINGS_SEARCH_MANAGE_SEARCH_ENGINES}, 1349 {"searchEnginesManage", IDS_SETTINGS_SEARCH_MANAGE_SEARCH_ENGINES},
1350 {"searchEnginesManageDescription", 1350 {"searchEnginesManageDescription",
1351 IDS_SETTINGS_SEARCH_MANAGE_SEARCH_ENGINES_DESCRIPTION}, 1351 IDS_SETTINGS_SEARCH_MANAGE_SEARCH_ENGINES_DESCRIPTION},
1352 {"searchOkGoogleLabel", IDS_SETTINGS_SEARCH_OK_GOOGLE_LABEL}, 1352 {"searchOkGoogleLabel", IDS_SETTINGS_SEARCH_OK_GOOGLE_LABEL},
1353 {"searchOkGoogleLearnMoreLink", 1353 {"searchOkGoogleSubtextAlwaysOn",
1354 IDS_SETTINGS_SEARCH_OK_GOOGLE_LEARN_MORE_LINK}, 1354 IDS_SETTINGS_SEARCH_OK_GOOGLE_SUBTEXT_ALWAYS_ON},
1355 {"searchOkGoogleDescriptionLabel", 1355 {"searchOkGoogleSubtextNoHardware",
1356 IDS_SETTINGS_SEARCH_OK_GOOGLE_DESCRIPTION_LABEL}, 1356 IDS_SETTINGS_SEARCH_OK_GOOGLE_SUBTEXT_NO_HARDWARE},
1357 {"searchOkGoogleLearnMore", IDS_SETTINGS_SEARCH_OK_GOOGLE_LEARN_MORE},
1358 {"searchOkGoogleAudioHistoryLabel",
1359 IDS_SETTINGS_SEARCH_OK_GOOGLE_AUDIO_HISTORY_LABEL},
1360 {"searchOkGoogleAudioHistorySubtext",
1361 IDS_SETTINGS_SEARCH_OK_GOOGLE_AUDIO_HISTORY_SUBTEXT},
1362 {"searchOkGoogleRetrain", IDS_SETTINGS_SEARCH_OK_GOOGLE_RETRAIN},
1357 }; 1363 };
1358 AddLocalizedStringsBulk(html_source, localized_strings, 1364 AddLocalizedStringsBulk(html_source, localized_strings,
1359 arraysize(localized_strings)); 1365 arraysize(localized_strings));
1366 html_source->AddString("hotwordLearnMoreUrl",
1367 chrome::kHotwordLearnMoreURL);
1368 html_source->AddString("manageAudioHistoryUrl",
1369 chrome::kManageAudioHistoryURL);
1360 } 1370 }
1361 1371
1362 void AddSearchEnginesStrings(content::WebUIDataSource* html_source) { 1372 void AddSearchEnginesStrings(content::WebUIDataSource* html_source) {
1363 LocalizedString localized_strings[] = { 1373 LocalizedString localized_strings[] = {
1364 {"searchEnginesPageTitle", IDS_SETTINGS_SEARCH_ENGINES}, 1374 {"searchEnginesPageTitle", IDS_SETTINGS_SEARCH_ENGINES},
1365 {"searchEnginesAddSearchEngine", 1375 {"searchEnginesAddSearchEngine",
1366 IDS_SETTINGS_SEARCH_ENGINES_ADD_SEARCH_ENGINE}, 1376 IDS_SETTINGS_SEARCH_ENGINES_ADD_SEARCH_ENGINE},
1367 {"searchEnginesEditSearchEngine", 1377 {"searchEnginesEditSearchEngine",
1368 IDS_SETTINGS_SEARCH_ENGINES_EDIT_SEARCH_ENGINE}, 1378 IDS_SETTINGS_SEARCH_ENGINES_EDIT_SEARCH_ENGINE},
1369 {"searchEnginesNotValid", IDS_SETTINGS_SEARCH_ENGINES_NOT_VALID}, 1379 {"searchEnginesNotValid", IDS_SETTINGS_SEARCH_ENGINES_NOT_VALID},
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
1815 #if defined(USE_NSS_CERTS) 1825 #if defined(USE_NSS_CERTS)
1816 AddCertificateManagerStrings(html_source); 1826 AddCertificateManagerStrings(html_source);
1817 #endif 1827 #endif
1818 1828
1819 policy_indicator::AddLocalizedStrings(html_source); 1829 policy_indicator::AddLocalizedStrings(html_source);
1820 1830
1821 html_source->SetJsonPath(kLocalizedStringsFile); 1831 html_source->SetJsonPath(kLocalizedStringsFile);
1822 } 1832 }
1823 1833
1824 } // namespace settings 1834 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698