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

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: rebase 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 663 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 #endif 674 #endif
675 } 675 }
676 676
677 #if defined(OS_CHROMEOS) 677 #if defined(OS_CHROMEOS)
678 void AddDateTimeStrings(content::WebUIDataSource* html_source) { 678 void AddDateTimeStrings(content::WebUIDataSource* html_source) {
679 LocalizedString localized_strings[] = { 679 LocalizedString localized_strings[] = {
680 {"dateTimePageTitle", IDS_SETTINGS_DATE_TIME}, 680 {"dateTimePageTitle", IDS_SETTINGS_DATE_TIME},
681 {"timeZone", IDS_SETTINGS_TIME_ZONE}, 681 {"timeZone", IDS_SETTINGS_TIME_ZONE},
682 {"timeZoneGeolocation", IDS_SETTINGS_TIME_ZONE_GEOLOCATION}, 682 {"timeZoneGeolocation", IDS_SETTINGS_TIME_ZONE_GEOLOCATION},
683 {"use24HourClock", IDS_SETTINGS_USE_24_HOUR_CLOCK}, 683 {"use24HourClock", IDS_SETTINGS_USE_24_HOUR_CLOCK},
684 {"setDateTime", IDS_SETTINGS_SET_DATE_TIME},
684 }; 685 };
685 AddLocalizedStringsBulk(html_source, localized_strings, 686 AddLocalizedStringsBulk(html_source, localized_strings,
686 arraysize(localized_strings)); 687 arraysize(localized_strings));
687 } 688 }
688 689
689 void AddEasyUnlockStrings(content::WebUIDataSource* html_source) { 690 void AddEasyUnlockStrings(content::WebUIDataSource* html_source) {
690 LocalizedString localized_strings[] = { 691 LocalizedString localized_strings[] = {
691 {"easyUnlockSectionTitle", IDS_SETTINGS_EASY_UNLOCK_SECTION_TITLE}, 692 {"easyUnlockSectionTitle", IDS_SETTINGS_EASY_UNLOCK_SECTION_TITLE},
692 {"easyUnlockSetupButton", IDS_SETTINGS_EASY_UNLOCK_SETUP}, 693 {"easyUnlockSetupButton", IDS_SETTINGS_EASY_UNLOCK_SETUP},
693 // Easy Unlock turn-off dialog. 694 // Easy Unlock turn-off dialog.
(...skipping 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after
1791 #endif 1792 #endif
1792 AddUsersStrings(html_source); 1793 AddUsersStrings(html_source);
1793 AddWebContentStrings(html_source); 1794 AddWebContentStrings(html_source);
1794 1795
1795 policy_indicator::AddLocalizedStrings(html_source); 1796 policy_indicator::AddLocalizedStrings(html_source);
1796 1797
1797 html_source->SetJsonPath(kLocalizedStringsFile); 1798 html_source->SetJsonPath(kLocalizedStringsFile);
1798 } 1799 }
1799 1800
1800 } // namespace settings 1801 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698