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

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

Issue 1975003002: MD Settings: About page, implementing detailed build info. (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
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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
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) 131 #if defined(OS_CHROMEOS)
132 {"aboutProductTitle", IDS_PRODUCT_OS_NAME}, 132 {"aboutProductTitle", IDS_PRODUCT_OS_NAME},
133 #else 133 #else
134 {"aboutProductTitle", IDS_PRODUCT_NAME}, 134 {"aboutProductTitle", IDS_PRODUCT_NAME},
135 #endif 135 #endif
136
137 #if defined(OS_CHROMEOS)
138 {"aboutChannelStable", IDS_SETTINGS_ABOUT_PAGE_CURRENT_CHANNEL_STABLE},
139 {"aboutChannelBeta", IDS_SETTINGS_ABOUT_PAGE_CURRENT_CHANNEL_BETA},
140 {"aboutChannelDev", IDS_SETTINGS_ABOUT_PAGE_CURRENT_CHANNEL_DEV},
141 {"aboutCurrentlyOnChannel", IDS_SETTINGS_ABOUT_PAGE_CURRENT_CHANNEL},
142 #endif
143
136 }; 144 };
137 AddLocalizedStringsBulk(html_source, localized_strings, 145 AddLocalizedStringsBulk(html_source, localized_strings,
138 arraysize(localized_strings)); 146 arraysize(localized_strings));
139 } 147 }
140 148
141 #if defined(OS_CHROMEOS) 149 #if defined(OS_CHROMEOS)
142 void AddAccountUITweaksStrings(content::WebUIDataSource* html_source, 150 void AddAccountUITweaksStrings(content::WebUIDataSource* html_source,
143 Profile* profile) { 151 Profile* profile) {
144 base::DictionaryValue localized_values; 152 base::DictionaryValue localized_values;
145 chromeos::AddAccountUITweaksLocalizedValues(&localized_values, profile); 153 chromeos::AddAccountUITweaksLocalizedValues(&localized_values, profile);
(...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after
991 #endif 999 #endif
992 AddUsersStrings(html_source); 1000 AddUsersStrings(html_source);
993 AddWebContentStrings(html_source); 1001 AddWebContentStrings(html_source);
994 1002
995 policy_indicator::AddLocalizedStrings(html_source); 1003 policy_indicator::AddLocalizedStrings(html_source);
996 1004
997 html_source->SetJsonPath(kLocalizedStringsFile); 1005 html_source->SetJsonPath(kLocalizedStringsFile);
998 } 1006 }
999 1007
1000 } // namespace settings 1008 } // namespace settings
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/settings/about_handler.cc ('k') | chrome/test/data/webui/settings/about_page_tests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698