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

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

Issue 1953093002: MD Settings: Hooking up router to navigate to dummy About page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing comments Created 4 years, 7 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
« no previous file with comments | « chrome/browser/resources/settings/settings_page/settings_router.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 chrome::kChromeAccessibilityHelpURL); 120 chrome::kChromeAccessibilityHelpURL);
121 121
122 html_source->AddBoolean("showExperimentalA11yFeatures", 122 html_source->AddBoolean("showExperimentalA11yFeatures",
123 base::CommandLine::ForCurrentProcess()->HasSwitch( 123 base::CommandLine::ForCurrentProcess()->HasSwitch(
124 chromeos::switches::kEnableExperimentalAccessibilityFeatures)); 124 chromeos::switches::kEnableExperimentalAccessibilityFeatures));
125 #endif 125 #endif
126 } 126 }
127 127
128 void AddAboutStrings(content::WebUIDataSource* html_source) { 128 void AddAboutStrings(content::WebUIDataSource* html_source) {
129 LocalizedString localized_strings[] = { 129 LocalizedString localized_strings[] = {
130 {"aboutProgram", IDS_SETTINGS_ABOUT_PROGRAM}, 130 {"aboutPageTitle", IDS_SETTINGS_ABOUT_PROGRAM},
131 }; 131 };
132 AddLocalizedStringsBulk(html_source, localized_strings, 132 AddLocalizedStringsBulk(html_source, localized_strings,
133 arraysize(localized_strings)); 133 arraysize(localized_strings));
134 } 134 }
135 135
136 #if defined(OS_CHROMEOS) 136 #if defined(OS_CHROMEOS)
137 void AddAccountUITweaksStrings(content::WebUIDataSource* html_source, 137 void AddAccountUITweaksStrings(content::WebUIDataSource* html_source,
138 Profile* profile) { 138 Profile* profile) {
139 base::DictionaryValue localized_values; 139 base::DictionaryValue localized_values;
140 chromeos::AddAccountUITweaksLocalizedValues(&localized_values, profile); 140 chromeos::AddAccountUITweaksLocalizedValues(&localized_values, profile);
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after
974 #endif 974 #endif
975 AddUsersStrings(html_source); 975 AddUsersStrings(html_source);
976 AddWebContentStrings(html_source); 976 AddWebContentStrings(html_source);
977 977
978 policy_indicator::AddLocalizedStrings(html_source); 978 policy_indicator::AddLocalizedStrings(html_source);
979 979
980 html_source->SetJsonPath(kLocalizedStringsFile); 980 html_source->SetJsonPath(kLocalizedStringsFile);
981 } 981 }
982 982
983 } // namespace settings 983 } // namespace settings
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/settings_page/settings_router.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698