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

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

Issue 2447343002: MD Settings: Show "Set date and time" button when relevant (Closed)
Patch Set: paper-icon-button-light.html Created 4 years, 1 month 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 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 #endif 668 #endif
669 } 669 }
670 670
671 #if defined(OS_CHROMEOS) 671 #if defined(OS_CHROMEOS)
672 void AddDateTimeStrings(content::WebUIDataSource* html_source) { 672 void AddDateTimeStrings(content::WebUIDataSource* html_source) {
673 LocalizedString localized_strings[] = { 673 LocalizedString localized_strings[] = {
674 {"dateTimePageTitle", IDS_SETTINGS_DATE_TIME}, 674 {"dateTimePageTitle", IDS_SETTINGS_DATE_TIME},
675 {"timeZone", IDS_SETTINGS_TIME_ZONE}, 675 {"timeZone", IDS_SETTINGS_TIME_ZONE},
676 {"timeZoneGeolocation", IDS_SETTINGS_TIME_ZONE_GEOLOCATION}, 676 {"timeZoneGeolocation", IDS_SETTINGS_TIME_ZONE_GEOLOCATION},
677 {"use24HourClock", IDS_SETTINGS_USE_24_HOUR_CLOCK}, 677 {"use24HourClock", IDS_SETTINGS_USE_24_HOUR_CLOCK},
678 {"setDateTime", IDS_SETTINGS_SET_DATE_TIME},
678 }; 679 };
679 AddLocalizedStringsBulk(html_source, localized_strings, 680 AddLocalizedStringsBulk(html_source, localized_strings,
680 arraysize(localized_strings)); 681 arraysize(localized_strings));
681 } 682 }
682 683
683 void AddEasyUnlockStrings(content::WebUIDataSource* html_source) { 684 void AddEasyUnlockStrings(content::WebUIDataSource* html_source) {
684 LocalizedString localized_strings[] = { 685 LocalizedString localized_strings[] = {
685 {"easyUnlockSectionTitle", IDS_SETTINGS_EASY_UNLOCK_SECTION_TITLE}, 686 {"easyUnlockSectionTitle", IDS_SETTINGS_EASY_UNLOCK_SECTION_TITLE},
686 {"easyUnlockSetupButton", IDS_SETTINGS_EASY_UNLOCK_SETUP}, 687 {"easyUnlockSetupButton", IDS_SETTINGS_EASY_UNLOCK_SETUP},
687 // Easy Unlock turn-off dialog. 688 // Easy Unlock turn-off dialog.
(...skipping 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after
1736 #endif 1737 #endif
1737 AddUsersStrings(html_source); 1738 AddUsersStrings(html_source);
1738 AddWebContentStrings(html_source); 1739 AddWebContentStrings(html_source);
1739 1740
1740 policy_indicator::AddLocalizedStrings(html_source); 1741 policy_indicator::AddLocalizedStrings(html_source);
1741 1742
1742 html_source->SetJsonPath(kLocalizedStringsFile); 1743 html_source->SetJsonPath(kLocalizedStringsFile);
1743 } 1744 }
1744 1745
1745 } // namespace settings 1746 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698