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

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

Issue 2795603002: Add an update warning for downloading over mobile data (Closed)
Patch Set: Created 3 years, 8 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/i18n/number_formatting.h" 10 #include "base/i18n/number_formatting.h"
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 IDS_SETTINGS_ABOUT_PAGE_POWERWASH_WARNING_MESSAGE}, 262 IDS_SETTINGS_ABOUT_PAGE_POWERWASH_WARNING_MESSAGE},
263 {"aboutPowerwashWarningTitle", 263 {"aboutPowerwashWarningTitle",
264 IDS_SETTINGS_ABOUT_PAGE_POWERWASH_WARNING_TITLE}, 264 IDS_SETTINGS_ABOUT_PAGE_POWERWASH_WARNING_TITLE},
265 {"aboutUnstableWarningMessage", 265 {"aboutUnstableWarningMessage",
266 IDS_SETTINGS_ABOUT_PAGE_UNSTABLE_WARNING_MESSAGE}, 266 IDS_SETTINGS_ABOUT_PAGE_UNSTABLE_WARNING_MESSAGE},
267 {"aboutUnstableWarningTitle", 267 {"aboutUnstableWarningTitle",
268 IDS_SETTINGS_ABOUT_PAGE_UNSTABLE_WARNING_TITLE}, 268 IDS_SETTINGS_ABOUT_PAGE_UNSTABLE_WARNING_TITLE},
269 {"aboutChannelDialogBeta", IDS_SETTINGS_ABOUT_PAGE_DIALOG_CHANNEL_BETA}, 269 {"aboutChannelDialogBeta", IDS_SETTINGS_ABOUT_PAGE_DIALOG_CHANNEL_BETA},
270 {"aboutChannelDialogDev", IDS_SETTINGS_ABOUT_PAGE_DIALOG_CHANNEL_DEV}, 270 {"aboutChannelDialogDev", IDS_SETTINGS_ABOUT_PAGE_DIALOG_CHANNEL_DEV},
271 {"aboutChannelDialogStable", IDS_SETTINGS_ABOUT_PAGE_DIALOG_CHANNEL_STABLE}, 271 {"aboutChannelDialogStable", IDS_SETTINGS_ABOUT_PAGE_DIALOG_CHANNEL_STABLE},
272
273 // About page, update warning dialog.
274 {"aboutUpdateWarningMessage",
275 IDS_SETTINGS_ABOUT_PAGE_UPDATE_WARNING_MESSAGE},
276 {"aboutUpdateWarningTitle", IDS_SETTINGS_ABOUT_PAGE_UPDATE_WARNING_TITLE},
277 {"aboutUpdateWarningContinue",
278 IDS_SETTINGS_ABOUT_PAGE_UPDATE_WARNING_CONTINUE_BUTTON},
272 #endif 279 #endif
Lei Zhang 2017/04/10 17:58:24 BTW, this #ifdef section is getting long, and a //
weidongg 2017/04/10 18:17:01 Sorry, I don't understand. What do you mean by add
Lei Zhang 2017/04/10 18:28:33 If one looks at https://codereview.chromium.org/27
273 }; 280 };
274 AddLocalizedStringsBulk(html_source, localized_strings, 281 AddLocalizedStringsBulk(html_source, localized_strings,
275 arraysize(localized_strings)); 282 arraysize(localized_strings));
276 283
277 html_source->AddString( 284 html_source->AddString(
278 "aboutUpgradeUpToDate", 285 "aboutUpgradeUpToDate",
279 #if defined(OS_CHROMEOS) 286 #if defined(OS_CHROMEOS)
280 ash::SubstituteChromeOSDeviceType(IDS_SETTINGS_UPGRADE_UP_TO_DATE)); 287 ash::SubstituteChromeOSDeviceType(IDS_SETTINGS_UPGRADE_UP_TO_DATE));
281 #else 288 #else
282 l10n_util::GetStringUTF16(IDS_SETTINGS_UPGRADE_UP_TO_DATE)); 289 l10n_util::GetStringUTF16(IDS_SETTINGS_UPGRADE_UP_TO_DATE));
(...skipping 1742 matching lines...) Expand 10 before | Expand all | Expand 10 after
2025 2032
2026 #if defined(OS_CHROMEOS) 2033 #if defined(OS_CHROMEOS)
2027 chromeos::network_element::AddLocalizedStrings(html_source); 2034 chromeos::network_element::AddLocalizedStrings(html_source);
2028 #endif 2035 #endif
2029 policy_indicator::AddLocalizedStrings(html_source); 2036 policy_indicator::AddLocalizedStrings(html_source);
2030 2037
2031 html_source->SetJsonPath(kLocalizedStringsFile); 2038 html_source->SetJsonPath(kLocalizedStringsFile);
2032 } 2039 }
2033 2040
2034 } // namespace settings 2041 } // 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