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

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: Remove paper-input obsolete CSS. 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 10 matching lines...) Expand all
21 #include "chrome/grit/settings_google_chrome_strings.h" 21 #include "chrome/grit/settings_google_chrome_strings.h"
22 #include "chrome/grit/settings_strings.h" 22 #include "chrome/grit/settings_strings.h"
23 #include "components/autofill/core/common/autofill_constants.h" 23 #include "components/autofill/core/common/autofill_constants.h"
24 #include "components/google/core/browser/google_util.h" 24 #include "components/google/core/browser/google_util.h"
25 #include "components/password_manager/core/browser/password_manager_constants.h" 25 #include "components/password_manager/core/browser/password_manager_constants.h"
26 #include "content/public/browser/web_ui_data_source.h" 26 #include "content/public/browser/web_ui_data_source.h"
27 #include "grit/components_strings.h" 27 #include "grit/components_strings.h"
28 #include "ui/base/l10n/l10n_util.h" 28 #include "ui/base/l10n/l10n_util.h"
29 29
30 #if defined(OS_CHROMEOS) 30 #if defined(OS_CHROMEOS)
31 #include "ash/common/system/chromeos/devicetype_utils.h" 31 #include "ash/system/chromeos/devicetype_utils.h"
dschuyler 2016/06/20 23:37:59 Did this change or is this a whoops? For me, this
dpapad 2016/06/20 23:55:07 Reverted. This was accidental.
32 #include "chrome/browser/chromeos/profiles/profile_helper.h" 32 #include "chrome/browser/chromeos/profiles/profile_helper.h"
33 #include "chrome/browser/ui/webui/chromeos/ui_account_tweaks.h" 33 #include "chrome/browser/ui/webui/chromeos/ui_account_tweaks.h"
34 #include "chromeos/chromeos_switches.h" 34 #include "chromeos/chromeos_switches.h"
35 #include "components/user_manager/user.h" 35 #include "components/user_manager/user.h"
36 #include "components/user_manager/user_manager.h" 36 #include "components/user_manager/user_manager.h"
37 #include "ui/chromeos/strings/grit/ui_chromeos_strings.h" 37 #include "ui/chromeos/strings/grit/ui_chromeos_strings.h"
38 #else 38 #else
39 #include "chrome/browser/ui/webui/settings/system_handler.h" 39 #include "chrome/browser/ui/webui/settings/system_handler.h"
40 #endif 40 #endif
41 41
(...skipping 21 matching lines...) Expand all
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