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

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: Rebase (there were no conflits, but CQ failed to apply patch somehow) 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 695 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 {"resetPageCommit", IDS_RESET_PROFILE_SETTINGS_COMMIT_BUTTON}, 706 {"resetPageCommit", IDS_RESET_PROFILE_SETTINGS_COMMIT_BUTTON},
707 {"resetPageFeedback", IDS_SETTINGS_RESET_PROFILE_FEEDBACK}, 707 {"resetPageFeedback", IDS_SETTINGS_RESET_PROFILE_FEEDBACK},
708 {"viewReportedSettings", IDS_SETTINGS_RESET_VIEW_REPORTED_SETTINGS}, 708 {"viewReportedSettings", IDS_SETTINGS_RESET_VIEW_REPORTED_SETTINGS},
709 #if defined(OS_CHROMEOS) 709 #if defined(OS_CHROMEOS)
710 {"powerwashTitle", IDS_OPTIONS_FACTORY_RESET}, 710 {"powerwashTitle", IDS_OPTIONS_FACTORY_RESET},
711 {"powerwashDialogTitle", IDS_OPTIONS_FACTORY_RESET_HEADING}, 711 {"powerwashDialogTitle", IDS_OPTIONS_FACTORY_RESET_HEADING},
712 {"powerwashDialogExplanation", IDS_OPTIONS_FACTORY_RESET_WARNING}, 712 {"powerwashDialogExplanation", IDS_OPTIONS_FACTORY_RESET_WARNING},
713 {"powerwashDialogButton", IDS_SETTINGS_RESTART}, 713 {"powerwashDialogButton", IDS_SETTINGS_RESTART},
714 {"powerwashLearnMoreUrl", IDS_FACTORY_RESET_HELP_URL}, 714 {"powerwashLearnMoreUrl", IDS_FACTORY_RESET_HELP_URL},
715 #endif 715 #endif
716 // Automatic reset banner. 716 // Automatic reset banner (now a dialog).
717 {"resetAutomatedDialogTitle", IDS_SETTINGS_RESET_AUTOMATED_DIALOG_TITLE},
717 {"resetProfileBannerButton", 718 {"resetProfileBannerButton",
718 IDS_AUTOMATIC_SETTINGS_RESET_BANNER_RESET_BUTTON_TEXT}, 719 IDS_AUTOMATIC_SETTINGS_RESET_BANNER_RESET_BUTTON_TEXT},
719 {"resetProfileBannerDescription", IDS_AUTOMATIC_SETTINGS_RESET_BANNER_TEXT}, 720 {"resetProfileBannerDescription", IDS_AUTOMATIC_SETTINGS_RESET_BANNER_TEXT},
720 }; 721 };
721 AddLocalizedStringsBulk(html_source, localized_strings, 722 AddLocalizedStringsBulk(html_source, localized_strings,
722 arraysize(localized_strings)); 723 arraysize(localized_strings));
723 724
724 html_source->AddString("resetPageLearnMoreUrl", 725 html_source->AddString("resetPageLearnMoreUrl",
725 chrome::kResetProfileSettingsLearnMoreURL); 726 chrome::kResetProfileSettingsLearnMoreURL);
726 html_source->AddString("resetProfileBannerLearnMoreUrl", 727 html_source->AddString("resetProfileBannerLearnMoreUrl",
(...skipping 1218 matching lines...) Expand 10 before | Expand all | Expand 10 after
1945 1946
1946 #if defined(OS_CHROMEOS) 1947 #if defined(OS_CHROMEOS)
1947 chromeos::network_element::AddLocalizedStrings(html_source); 1948 chromeos::network_element::AddLocalizedStrings(html_source);
1948 #endif 1949 #endif
1949 policy_indicator::AddLocalizedStrings(html_source); 1950 policy_indicator::AddLocalizedStrings(html_source);
1950 1951
1951 html_source->SetJsonPath(kLocalizedStringsFile); 1952 html_source->SetJsonPath(kLocalizedStringsFile);
1952 } 1953 }
1953 1954
1954 } // namespace settings 1955 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698