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

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

Issue 2371303002: md-settings: add routing to chrome://settings/triggeredResetProfileSettings (Closed)
Patch Set: Nits Created 4 years, 2 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 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 }; 576 };
577 AddLocalizedStringsBulk(html_source, localized_strings, 577 AddLocalizedStringsBulk(html_source, localized_strings,
578 arraysize(localized_strings)); 578 arraysize(localized_strings));
579 } 579 }
580 580
581 void AddResetStrings(content::WebUIDataSource* html_source) { 581 void AddResetStrings(content::WebUIDataSource* html_source) {
582 LocalizedString localized_strings[] = { 582 LocalizedString localized_strings[] = {
583 {"resetPageTitle", IDS_SETTINGS_RESET}, 583 {"resetPageTitle", IDS_SETTINGS_RESET},
584 {"resetPageDescription", IDS_RESET_PROFILE_SETTINGS_DESCRIPTION}, 584 {"resetPageDescription", IDS_RESET_PROFILE_SETTINGS_DESCRIPTION},
585 {"resetPageExplanation", IDS_RESET_PROFILE_SETTINGS_EXPLANATION}, 585 {"resetPageExplanation", IDS_RESET_PROFILE_SETTINGS_EXPLANATION},
586 {"triggeredResetPageExplanation",
587 IDS_TRIGGERED_RESET_PROFILE_SETTINGS_EXPLANATION},
588 {"triggeredResetPageTitle", IDS_TRIGGERED_RESET_PROFILE_SETTINGS_TITLE},
586 {"resetPageCommit", IDS_RESET_PROFILE_SETTINGS_COMMIT_BUTTON}, 589 {"resetPageCommit", IDS_RESET_PROFILE_SETTINGS_COMMIT_BUTTON},
587 {"resetPageFeedback", IDS_SETTINGS_RESET_PROFILE_FEEDBACK}, 590 {"resetPageFeedback", IDS_SETTINGS_RESET_PROFILE_FEEDBACK},
588 {"viewReportedSettings", IDS_SETTINGS_RESET_VIEW_REPORTED_SETTINGS}, 591 {"viewReportedSettings", IDS_SETTINGS_RESET_VIEW_REPORTED_SETTINGS},
589 #if defined(OS_CHROMEOS) 592 #if defined(OS_CHROMEOS)
590 {"powerwashTitle", IDS_OPTIONS_FACTORY_RESET}, 593 {"powerwashTitle", IDS_OPTIONS_FACTORY_RESET},
591 {"powerwashDialogTitle", IDS_OPTIONS_FACTORY_RESET_HEADING}, 594 {"powerwashDialogTitle", IDS_OPTIONS_FACTORY_RESET_HEADING},
592 {"powerwashDialogExplanation", IDS_OPTIONS_FACTORY_RESET_WARNING}, 595 {"powerwashDialogExplanation", IDS_OPTIONS_FACTORY_RESET_WARNING},
593 {"powerwashDialogButton", IDS_SETTINGS_RESTART}, 596 {"powerwashDialogButton", IDS_SETTINGS_RESTART},
594 {"powerwashLearnMoreUrl", IDS_FACTORY_RESET_HELP_URL}, 597 {"powerwashLearnMoreUrl", IDS_FACTORY_RESET_HELP_URL},
595 #endif 598 #endif
(...skipping 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after
1633 #endif 1636 #endif
1634 AddUsersStrings(html_source); 1637 AddUsersStrings(html_source);
1635 AddWebContentStrings(html_source); 1638 AddWebContentStrings(html_source);
1636 1639
1637 policy_indicator::AddLocalizedStrings(html_source); 1640 policy_indicator::AddLocalizedStrings(html_source);
1638 1641
1639 html_source->SetJsonPath(kLocalizedStringsFile); 1642 html_source->SetJsonPath(kLocalizedStringsFile);
1640 } 1643 }
1641 1644
1642 } // namespace settings 1645 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698