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

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

Issue 1096143003: Add chrome.searchEnginesPrivate API and Search Settings page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update OWNERS Created 5 years, 8 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 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 "chrome/grit/generated_resources.h" 7 #include "chrome/grit/generated_resources.h"
8 #include "content/public/browser/web_ui_data_source.h" 8 #include "content/public/browser/web_ui_data_source.h"
9 9
10 namespace { 10 namespace {
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 IDS_SETTINGS_DATE_TIME_AUTOMATICALLY_SET); 97 IDS_SETTINGS_DATE_TIME_AUTOMATICALLY_SET);
98 } 98 }
99 99
100 #if defined(OS_CHROMEOS) 100 #if defined(OS_CHROMEOS)
101 void AddInternetStrings(content::WebUIDataSource* html_source) { 101 void AddInternetStrings(content::WebUIDataSource* html_source) {
102 html_source->AddLocalizedString( 102 html_source->AddLocalizedString(
103 "internetPageTitle", IDS_SETTINGS_INTERNET_PAGE_TITLE); 103 "internetPageTitle", IDS_SETTINGS_INTERNET_PAGE_TITLE);
104 } 104 }
105 #endif 105 #endif
106 106
107 void AddSearchStrings(content::WebUIDataSource* html_source) {
108 html_source->AddLocalizedString("searchPageTitle",
109 IDS_SETTINGS_SEARCH_PAGE_TITLE);
110 html_source->AddLocalizedString("searchExplanation",
111 IDS_SETTINGS_SEARCH_EXPLANATION);
112 html_source->AddLocalizedString("searchManageButtonLabel",
113 IDS_SETTINGS_SEARCH_MANAGE_BUTTON_LABEL);
114 html_source->AddLocalizedString("searchOkGoogleLabel",
115 IDS_SETTINGS_SEARCH_OK_GOOGLE_LABEL);
116 html_source->AddLocalizedString(
117 "searchOkGoogleLearnMoreLink",
118 IDS_SETTINGS_SEARCH_OK_GOOGLE_LEARN_MORE_LINK);
119 html_source->AddLocalizedString(
120 "searchOkGoogleDescriptionLabel",
121 IDS_SETTINGS_SEARCH_OK_GOOGLE_DESCRIPTION_LABEL);
122 }
123
107 } // namespace 124 } // namespace
108 125
109 namespace settings { 126 namespace settings {
110 127
111 void AddLocalizedStrings(content::WebUIDataSource* html_source) { 128 void AddLocalizedStrings(content::WebUIDataSource* html_source) {
112 AddA11yStrings(html_source); 129 AddA11yStrings(html_source);
113 AddDownloadsStrings(html_source); 130 AddDownloadsStrings(html_source);
114 AddDateTimeStrings(html_source); 131 AddDateTimeStrings(html_source);
115 #if defined(OS_CHROMEOS) 132 #if defined(OS_CHROMEOS)
116 AddInternetStrings(html_source); 133 AddInternetStrings(html_source);
117 #endif 134 #endif
135 AddSearchStrings(html_source);
118 html_source->SetJsonPath(kLocalizedStringsFile); 136 html_source->SetJsonPath(kLocalizedStringsFile);
119 } 137 }
120 138
121 } // namespace settings 139 } // namespace settings
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/settings_resources.grd ('k') | chrome/chrome_browser_extensions.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698