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

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

Issue 2625263002: MD Settings: Convert reset profile banner to a dialog. (Closed)
Patch Set: Nit. Created 3 years, 10 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/i18n/number_formatting.h" 10 #include "base/i18n/number_formatting.h"
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 {"resetPageCommit", IDS_RESET_PROFILE_SETTINGS_COMMIT_BUTTON}, 704 {"resetPageCommit", IDS_RESET_PROFILE_SETTINGS_COMMIT_BUTTON},
705 {"resetPageFeedback", IDS_SETTINGS_RESET_PROFILE_FEEDBACK}, 705 {"resetPageFeedback", IDS_SETTINGS_RESET_PROFILE_FEEDBACK},
706 {"viewReportedSettings", IDS_SETTINGS_RESET_VIEW_REPORTED_SETTINGS}, 706 {"viewReportedSettings", IDS_SETTINGS_RESET_VIEW_REPORTED_SETTINGS},
707 #if defined(OS_CHROMEOS) 707 #if defined(OS_CHROMEOS)
708 {"powerwashTitle", IDS_OPTIONS_FACTORY_RESET}, 708 {"powerwashTitle", IDS_OPTIONS_FACTORY_RESET},
709 {"powerwashDialogTitle", IDS_OPTIONS_FACTORY_RESET_HEADING}, 709 {"powerwashDialogTitle", IDS_OPTIONS_FACTORY_RESET_HEADING},
710 {"powerwashDialogExplanation", IDS_OPTIONS_FACTORY_RESET_WARNING}, 710 {"powerwashDialogExplanation", IDS_OPTIONS_FACTORY_RESET_WARNING},
711 {"powerwashDialogButton", IDS_SETTINGS_RESTART}, 711 {"powerwashDialogButton", IDS_SETTINGS_RESTART},
712 {"powerwashLearnMoreUrl", IDS_FACTORY_RESET_HELP_URL}, 712 {"powerwashLearnMoreUrl", IDS_FACTORY_RESET_HELP_URL},
713 #endif 713 #endif
714 // Automatic reset banner. 714 // Automatic reset banner (now a dialog).
715 {"resetAutomatedDialogTitle", IDS_SETTINGS_RESET_AUTOMATED_DIALOG_TITLE},
715 {"resetProfileBannerButton", 716 {"resetProfileBannerButton",
716 IDS_AUTOMATIC_SETTINGS_RESET_BANNER_RESET_BUTTON_TEXT}, 717 IDS_AUTOMATIC_SETTINGS_RESET_BANNER_RESET_BUTTON_TEXT},
717 {"resetProfileBannerDescription", IDS_AUTOMATIC_SETTINGS_RESET_BANNER_TEXT}, 718 {"resetProfileBannerDescription", IDS_AUTOMATIC_SETTINGS_RESET_BANNER_TEXT},
718 }; 719 };
719 AddLocalizedStringsBulk(html_source, localized_strings, 720 AddLocalizedStringsBulk(html_source, localized_strings,
720 arraysize(localized_strings)); 721 arraysize(localized_strings));
721 722
722 html_source->AddString("resetPageLearnMoreUrl", 723 html_source->AddString("resetPageLearnMoreUrl",
723 chrome::kResetProfileSettingsLearnMoreURL); 724 chrome::kResetProfileSettingsLearnMoreURL);
724 html_source->AddString("resetProfileBannerLearnMoreUrl", 725 html_source->AddString("resetProfileBannerLearnMoreUrl",
(...skipping 1179 matching lines...) Expand 10 before | Expand all | Expand 10 after
1904 1905
1905 #if defined(OS_CHROMEOS) 1906 #if defined(OS_CHROMEOS)
1906 chromeos::network_element::AddLocalizedStrings(html_source); 1907 chromeos::network_element::AddLocalizedStrings(html_source);
1907 #endif 1908 #endif
1908 policy_indicator::AddLocalizedStrings(html_source); 1909 policy_indicator::AddLocalizedStrings(html_source);
1909 1910
1910 html_source->SetJsonPath(kLocalizedStringsFile); 1911 html_source->SetJsonPath(kLocalizedStringsFile);
1911 } 1912 }
1912 1913
1913 } // namespace settings 1914 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698