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

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

Issue 2629573006: chromeos: Add Power device page to chrome://md-settings. (Closed)
Patch Set: update now that power source settings exist Created 3 years, 9 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 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 {"storageClearDriveCacheDialogTitle", 670 {"storageClearDriveCacheDialogTitle",
671 IDS_SETTINGS_STORAGE_CLEAR_DRIVE_CACHE_DIALOG_TITLE}, 671 IDS_SETTINGS_STORAGE_CLEAR_DRIVE_CACHE_DIALOG_TITLE},
672 {"storageClearDriveCacheDialogDescription", 672 {"storageClearDriveCacheDialogDescription",
673 IDS_SETTINGS_STORAGE_CLEAR_DRIVE_CACHE_DESCRIPTION}, 673 IDS_SETTINGS_STORAGE_CLEAR_DRIVE_CACHE_DESCRIPTION},
674 {"storageDeleteAllButtonTitle", 674 {"storageDeleteAllButtonTitle",
675 IDS_SETTINGS_STORAGE_DELETE_ALL_BUTTON_TITLE}}; 675 IDS_SETTINGS_STORAGE_DELETE_ALL_BUTTON_TITLE}};
676 AddLocalizedStringsBulk(html_source, storage_strings, 676 AddLocalizedStringsBulk(html_source, storage_strings,
677 arraysize(storage_strings)); 677 arraysize(storage_strings));
678 678
679 LocalizedString power_strings[] = { 679 LocalizedString power_strings[] = {
680 {"powerTitle", IDS_SETTINGS_POWER_TITLE},
680 {"powerSourceLabel", IDS_SETTINGS_POWER_SOURCE_LABEL}, 681 {"powerSourceLabel", IDS_SETTINGS_POWER_SOURCE_LABEL},
681 {"powerSourceBattery", IDS_SETTINGS_POWER_SOURCE_BATTERY}, 682 {"powerSourceBattery", IDS_SETTINGS_POWER_SOURCE_BATTERY},
682 {"powerSourceAcAdapter", IDS_SETTINGS_POWER_SOURCE_AC_ADAPTER}, 683 {"powerSourceAcAdapter", IDS_SETTINGS_POWER_SOURCE_AC_ADAPTER},
683 {"powerSourceLowPowerCharger", 684 {"powerSourceLowPowerCharger",
684 IDS_SETTINGS_POWER_SOURCE_LOW_POWER_CHARGER}, 685 IDS_SETTINGS_POWER_SOURCE_LOW_POWER_CHARGER},
685 {"calculatingPower", IDS_SETTINGS_POWER_SOURCE_CALCULATING}}; 686 {"calculatingPower", IDS_SETTINGS_POWER_SOURCE_CALCULATING}};
686 AddLocalizedStringsBulk(html_source, power_strings, arraysize(power_strings)); 687 AddLocalizedStringsBulk(html_source, power_strings, arraysize(power_strings));
687 688
688 html_source->AddString("naturalScrollLearnMoreLink", 689 html_source->AddString("naturalScrollLearnMoreLink",
689 base::ASCIIToUTF16(chrome::kNaturalScrollHelpURL)); 690 base::ASCIIToUTF16(chrome::kNaturalScrollHelpURL));
(...skipping 1273 matching lines...) Expand 10 before | Expand all | Expand 10 after
1963 1964
1964 #if defined(OS_CHROMEOS) 1965 #if defined(OS_CHROMEOS)
1965 chromeos::network_element::AddLocalizedStrings(html_source); 1966 chromeos::network_element::AddLocalizedStrings(html_source);
1966 #endif 1967 #endif
1967 policy_indicator::AddLocalizedStrings(html_source); 1968 policy_indicator::AddLocalizedStrings(html_source);
1968 1969
1969 html_source->SetJsonPath(kLocalizedStringsFile); 1970 html_source->SetJsonPath(kLocalizedStringsFile);
1970 } 1971 }
1971 1972
1972 } // namespace settings 1973 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698