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

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: merge 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 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 {"storageClearDriveCacheDialogTitle", 672 {"storageClearDriveCacheDialogTitle",
673 IDS_SETTINGS_STORAGE_CLEAR_DRIVE_CACHE_DIALOG_TITLE}, 673 IDS_SETTINGS_STORAGE_CLEAR_DRIVE_CACHE_DIALOG_TITLE},
674 {"storageClearDriveCacheDialogDescription", 674 {"storageClearDriveCacheDialogDescription",
675 IDS_SETTINGS_STORAGE_CLEAR_DRIVE_CACHE_DESCRIPTION}, 675 IDS_SETTINGS_STORAGE_CLEAR_DRIVE_CACHE_DESCRIPTION},
676 {"storageDeleteAllButtonTitle", 676 {"storageDeleteAllButtonTitle",
677 IDS_SETTINGS_STORAGE_DELETE_ALL_BUTTON_TITLE}}; 677 IDS_SETTINGS_STORAGE_DELETE_ALL_BUTTON_TITLE}};
678 AddLocalizedStringsBulk(html_source, storage_strings, 678 AddLocalizedStringsBulk(html_source, storage_strings,
679 arraysize(storage_strings)); 679 arraysize(storage_strings));
680 680
681 LocalizedString power_strings[] = { 681 LocalizedString power_strings[] = {
682 {"powerTitle", IDS_SETTINGS_POWER_TITLE},
682 {"powerSourceLabel", IDS_SETTINGS_POWER_SOURCE_LABEL}, 683 {"powerSourceLabel", IDS_SETTINGS_POWER_SOURCE_LABEL},
683 {"powerSourceBattery", IDS_SETTINGS_POWER_SOURCE_BATTERY}, 684 {"powerSourceBattery", IDS_SETTINGS_POWER_SOURCE_BATTERY},
684 {"powerSourceAcAdapter", IDS_SETTINGS_POWER_SOURCE_AC_ADAPTER}, 685 {"powerSourceAcAdapter", IDS_SETTINGS_POWER_SOURCE_AC_ADAPTER},
685 {"powerSourceLowPowerCharger", 686 {"powerSourceLowPowerCharger",
686 IDS_SETTINGS_POWER_SOURCE_LOW_POWER_CHARGER}, 687 IDS_SETTINGS_POWER_SOURCE_LOW_POWER_CHARGER},
687 {"calculatingPower", IDS_SETTINGS_POWER_SOURCE_CALCULATING}}; 688 {"calculatingPower", IDS_SETTINGS_POWER_SOURCE_CALCULATING}};
688 AddLocalizedStringsBulk(html_source, power_strings, arraysize(power_strings)); 689 AddLocalizedStringsBulk(html_source, power_strings, arraysize(power_strings));
689 690
690 html_source->AddString("naturalScrollLearnMoreLink", 691 html_source->AddString("naturalScrollLearnMoreLink",
691 base::ASCIIToUTF16(chrome::kNaturalScrollHelpURL)); 692 base::ASCIIToUTF16(chrome::kNaturalScrollHelpURL));
(...skipping 1277 matching lines...) Expand 10 before | Expand all | Expand 10 after
1969 1970
1970 #if defined(OS_CHROMEOS) 1971 #if defined(OS_CHROMEOS)
1971 chromeos::network_element::AddLocalizedStrings(html_source); 1972 chromeos::network_element::AddLocalizedStrings(html_source);
1972 #endif 1973 #endif
1973 policy_indicator::AddLocalizedStrings(html_source); 1974 policy_indicator::AddLocalizedStrings(html_source);
1974 1975
1975 html_source->SetJsonPath(kLocalizedStringsFile); 1976 html_source->SetJsonPath(kLocalizedStringsFile);
1976 } 1977 }
1977 1978
1978 } // namespace settings 1979 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698