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

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

Issue 2064013002: MD Settings: Replace current toolbar with cr-toolbar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@search_box1
Patch Set: Undo accidental change. Created 4 years, 6 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 <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 void AddCommonStrings(content::WebUIDataSource* html_source) { 63 void AddCommonStrings(content::WebUIDataSource* html_source) {
64 LocalizedString localized_strings[] = { 64 LocalizedString localized_strings[] = {
65 {"add", IDS_ADD}, 65 {"add", IDS_ADD},
66 {"cancel", IDS_CANCEL}, 66 {"cancel", IDS_CANCEL},
67 {"disable", IDS_DISABLE}, 67 {"disable", IDS_DISABLE},
68 {"learnMore", IDS_LEARN_MORE}, 68 {"learnMore", IDS_LEARN_MORE},
69 {"ok", IDS_OK}, 69 {"ok", IDS_OK},
70 {"save", IDS_SAVE}, 70 {"save", IDS_SAVE},
71 {"advancedPageTitle", IDS_SETTINGS_ADVANCED}, 71 {"advancedPageTitle", IDS_SETTINGS_ADVANCED},
72 {"basicPageTitle", IDS_SETTINGS_BASIC}, 72 {"basicPageTitle", IDS_SETTINGS_BASIC},
73 {"internalSearch", IDS_SETTINGS_INTERNAL_SEARCH}, 73 {"searchPrompt", IDS_SETTINGS_SEARCH_PROMPT},
74 // TODO(dpapad); IDS_DOWNLOAD_CLEAR_SEARCH and IDS_MD_HISTORY_CLEAR_SEARCH
75 // are identical, merge them to one and re-use here.
76 {"clearSearch", IDS_DOWNLOAD_CLEAR_SEARCH},
74 {"settings", IDS_SETTINGS_SETTINGS}, 77 {"settings", IDS_SETTINGS_SETTINGS},
75 {"restart", IDS_SETTINGS_RESTART}, 78 {"restart", IDS_SETTINGS_RESTART},
76 }; 79 };
77 AddLocalizedStringsBulk(html_source, localized_strings, 80 AddLocalizedStringsBulk(html_source, localized_strings,
78 arraysize(localized_strings)); 81 arraysize(localized_strings));
79 } 82 }
80 83
81 void AddA11yStrings(content::WebUIDataSource* html_source) { 84 void AddA11yStrings(content::WebUIDataSource* html_source) {
82 LocalizedString localized_strings[] = { 85 LocalizedString localized_strings[] = {
83 {"a11yPageTitle", IDS_SETTINGS_ACCESSIBILITY}, 86 {"a11yPageTitle", IDS_SETTINGS_ACCESSIBILITY},
(...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after
1145 #endif 1148 #endif
1146 AddUsersStrings(html_source); 1149 AddUsersStrings(html_source);
1147 AddWebContentStrings(html_source); 1150 AddWebContentStrings(html_source);
1148 1151
1149 policy_indicator::AddLocalizedStrings(html_source); 1152 policy_indicator::AddLocalizedStrings(html_source);
1150 1153
1151 html_source->SetJsonPath(kLocalizedStringsFile); 1154 html_source->SetJsonPath(kLocalizedStringsFile);
1152 } 1155 }
1153 1156
1154 } // namespace settings 1157 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698