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

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

Issue 1997453006: MD Settings: About page, updating buttons based on current update status. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@about_page_main3
Patch Set: @private 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 {"aboutGetHelpUsingChrome", IDS_SETTINGS_GET_HELP_USING_CHROME}, 136 {"aboutGetHelpUsingChrome", IDS_SETTINGS_GET_HELP_USING_CHROME},
137 137
138 #if defined(GOOGLE_CHROME_BUILD) 138 #if defined(GOOGLE_CHROME_BUILD)
139 {"aboutReportAnIssue", IDS_SETTINGS_ABOUT_PAGE_REPORT_AN_ISSUE}, 139 {"aboutReportAnIssue", IDS_SETTINGS_ABOUT_PAGE_REPORT_AN_ISSUE},
140 #endif 140 #endif
141 141
142 {"aboutRelaunch", IDS_SETTINGS_ABOUT_PAGE_RELAUNCH},
142 {"aboutUpgradeCheckStarted", IDS_SETTINGS_ABOUT_UPGRADE_CHECK_STARTED}, 143 {"aboutUpgradeCheckStarted", IDS_SETTINGS_ABOUT_UPGRADE_CHECK_STARTED},
143 {"aboutUpgradeRelaunch", IDS_SETTINGS_UPGRADE_SUCCESSFUL_RELAUNCH}, 144 {"aboutUpgradeRelaunch", IDS_SETTINGS_UPGRADE_SUCCESSFUL_RELAUNCH},
144 {"aboutUpgradeUpdating", IDS_SETTINGS_UPGRADE_UPDATING}, 145 {"aboutUpgradeUpdating", IDS_SETTINGS_UPGRADE_UPDATING},
145 146
146 #if defined(OS_CHROMEOS) 147 #if defined(OS_CHROMEOS)
147 {"aboutChannelStable", IDS_SETTINGS_ABOUT_PAGE_CURRENT_CHANNEL_STABLE}, 148 {"aboutChannelStable", IDS_SETTINGS_ABOUT_PAGE_CURRENT_CHANNEL_STABLE},
148 {"aboutChannelBeta", IDS_SETTINGS_ABOUT_PAGE_CURRENT_CHANNEL_BETA}, 149 {"aboutChannelBeta", IDS_SETTINGS_ABOUT_PAGE_CURRENT_CHANNEL_BETA},
149 {"aboutChannelDev", IDS_SETTINGS_ABOUT_PAGE_CURRENT_CHANNEL_DEV}, 150 {"aboutChannelDev", IDS_SETTINGS_ABOUT_PAGE_CURRENT_CHANNEL_DEV},
151 {"aboutCheckForUpdates", IDS_SETTINGS_ABOUT_PAGE_CHECK_FOR_UPDATES},
150 {"aboutCurrentlyOnChannel", IDS_SETTINGS_ABOUT_PAGE_CURRENT_CHANNEL}, 152 {"aboutCurrentlyOnChannel", IDS_SETTINGS_ABOUT_PAGE_CURRENT_CHANNEL},
153 {"aboutRelaunchAndPowerwash",
154 IDS_SETTINGS_ABOUT_PAGE_RELAUNCH_AND_POWERWASH},
151 {"aboutUpgradeUpdatingChannelSwitch", 155 {"aboutUpgradeUpdatingChannelSwitch",
152 IDS_SETTINGS_UPGRADE_UPDATING_CHANNEL_SWITCH}, 156 IDS_SETTINGS_UPGRADE_UPDATING_CHANNEL_SWITCH},
153 {"aboutUpgradeSuccessChannelSwitch", 157 {"aboutUpgradeSuccessChannelSwitch",
154 IDS_SETTINGS_UPGRADE_SUCCESSFUL_CHANNEL_SWITCH}, 158 IDS_SETTINGS_UPGRADE_SUCCESSFUL_CHANNEL_SWITCH},
155 #endif 159 #endif
156 160
157 }; 161 };
158 AddLocalizedStringsBulk(html_source, localized_strings, 162 AddLocalizedStringsBulk(html_source, localized_strings,
159 arraysize(localized_strings)); 163 arraysize(localized_strings));
160 164
(...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after
1031 #endif 1035 #endif
1032 AddUsersStrings(html_source); 1036 AddUsersStrings(html_source);
1033 AddWebContentStrings(html_source); 1037 AddWebContentStrings(html_source);
1034 1038
1035 policy_indicator::AddLocalizedStrings(html_source); 1039 policy_indicator::AddLocalizedStrings(html_source);
1036 1040
1037 html_source->SetJsonPath(kLocalizedStringsFile); 1041 html_source->SetJsonPath(kLocalizedStringsFile);
1038 } 1042 }
1039 1043
1040 } // namespace settings 1044 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698