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

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 copyright year Created 3 years, 11 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 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 {"displayOverscanPosition", IDS_SETTINGS_DISPLAY_OVERSCAN_POSITION}, 609 {"displayOverscanPosition", IDS_SETTINGS_DISPLAY_OVERSCAN_POSITION},
610 {"displayOverscanReset", IDS_SETTINGS_DISPLAY_OVERSCAN_RESET}, 610 {"displayOverscanReset", IDS_SETTINGS_DISPLAY_OVERSCAN_RESET},
611 {"displayTouchCalibrationTitle", 611 {"displayTouchCalibrationTitle",
612 IDS_SETTINGS_DISPLAY_TOUCH_CALIBRATION_TITLE}, 612 IDS_SETTINGS_DISPLAY_TOUCH_CALIBRATION_TITLE},
613 {"displayTouchCalibrationText", 613 {"displayTouchCalibrationText",
614 IDS_SETTINGS_DISPLAY_TOUCH_CALIBRATION_TEXT} 614 IDS_SETTINGS_DISPLAY_TOUCH_CALIBRATION_TEXT}
615 }; 615 };
616 AddLocalizedStringsBulk(html_source, display_strings, 616 AddLocalizedStringsBulk(html_source, display_strings,
617 arraysize(display_strings)); 617 arraysize(display_strings));
618 618
619 LocalizedString power_strings[] = {
620 {"powerTitle", IDS_SETTINGS_POWER_TITLE},
621 };
622 AddLocalizedStringsBulk(html_source, power_strings,
623 arraysize(power_strings));
624
619 html_source->AddBoolean( 625 html_source->AddBoolean(
620 "enableTouchCalibrationSetting", 626 "enableTouchCalibrationSetting",
621 base::CommandLine::ForCurrentProcess()->HasSwitch( 627 base::CommandLine::ForCurrentProcess()->HasSwitch(
622 chromeos::switches::kEnableTouchCalibrationSetting)); 628 chromeos::switches::kEnableTouchCalibrationSetting));
623 629
624 LocalizedString storage_strings[] = { 630 LocalizedString storage_strings[] = {
625 {"storageTitle", IDS_SETTINGS_STORAGE_TITLE}, 631 {"storageTitle", IDS_SETTINGS_STORAGE_TITLE},
626 {"storageItemInUse", IDS_SETTINGS_STORAGE_ITEM_IN_USE}, 632 {"storageItemInUse", IDS_SETTINGS_STORAGE_ITEM_IN_USE},
627 {"storageItemAvailable", IDS_SETTINGS_STORAGE_ITEM_AVAILABLE}, 633 {"storageItemAvailable", IDS_SETTINGS_STORAGE_ITEM_AVAILABLE},
628 {"storageItemDownloads", IDS_SETTINGS_STORAGE_ITEM_DOWNLOADS}, 634 {"storageItemDownloads", IDS_SETTINGS_STORAGE_ITEM_DOWNLOADS},
(...skipping 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after
1864 #if defined(USE_NSS_CERTS) 1870 #if defined(USE_NSS_CERTS)
1865 AddCertificateManagerStrings(html_source); 1871 AddCertificateManagerStrings(html_source);
1866 #endif 1872 #endif
1867 1873
1868 policy_indicator::AddLocalizedStrings(html_source); 1874 policy_indicator::AddLocalizedStrings(html_source);
1869 1875
1870 html_source->SetJsonPath(kLocalizedStringsFile); 1876 html_source->SetJsonPath(kLocalizedStringsFile);
1871 } 1877 }
1872 1878
1873 } // namespace settings 1879 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698