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

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

Issue 1950423003: MD Settings: Adding "About" page basic structure. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@about_page_route
Patch Set: Comment. 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_resources.grd ('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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 {"aboutPageTitle", IDS_SETTINGS_ABOUT_PROGRAM}, 130 {"aboutPageTitle", IDS_SETTINGS_ABOUT_PROGRAM},
131 #if defined(OS_CHROMEOS)
132 {"aboutProductTitle", IDS_PRODUCT_OS_NAME},
133 #else
134 {"aboutProductTitle", IDS_PRODUCT_NAME},
135 #endif
131 }; 136 };
132 AddLocalizedStringsBulk(html_source, localized_strings, 137 AddLocalizedStringsBulk(html_source, localized_strings,
133 arraysize(localized_strings)); 138 arraysize(localized_strings));
134 } 139 }
135 140
136 #if defined(OS_CHROMEOS) 141 #if defined(OS_CHROMEOS)
137 void AddAccountUITweaksStrings(content::WebUIDataSource* html_source, 142 void AddAccountUITweaksStrings(content::WebUIDataSource* html_source,
138 Profile* profile) { 143 Profile* profile) {
139 base::DictionaryValue localized_values; 144 base::DictionaryValue localized_values;
140 chromeos::AddAccountUITweaksLocalizedValues(&localized_values, profile); 145 chromeos::AddAccountUITweaksLocalizedValues(&localized_values, profile);
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after
974 #endif 979 #endif
975 AddUsersStrings(html_source); 980 AddUsersStrings(html_source);
976 AddWebContentStrings(html_source); 981 AddWebContentStrings(html_source);
977 982
978 policy_indicator::AddLocalizedStrings(html_source); 983 policy_indicator::AddLocalizedStrings(html_source);
979 984
980 html_source->SetJsonPath(kLocalizedStringsFile); 985 html_source->SetJsonPath(kLocalizedStringsFile);
981 } 986 }
982 987
983 } // namespace settings 988 } // namespace settings
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/settings_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698