OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/options/browser_options_handler.h" | 5 #include "chrome/browser/ui/webui/options/browser_options_handler.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <utility> | 10 #include <utility> |
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 { "configurePinChoosePinTitle", | 511 { "configurePinChoosePinTitle", |
512 IDS_SETTINGS_PEOPLE_CONFIGURE_PIN_CHOOSE_PIN_TITLE }, | 512 IDS_SETTINGS_PEOPLE_CONFIGURE_PIN_CHOOSE_PIN_TITLE }, |
513 { "configurePinConfirmPinTitle", | 513 { "configurePinConfirmPinTitle", |
514 IDS_SETTINGS_PEOPLE_CONFIGURE_PIN_CONFIRM_PIN_TITLE }, | 514 IDS_SETTINGS_PEOPLE_CONFIGURE_PIN_CONFIRM_PIN_TITLE }, |
515 { "configurePinContinueButton", | 515 { "configurePinContinueButton", |
516 IDS_SETTINGS_PEOPLE_CONFIGURE_PIN_CONTINUE_BUTTON }, | 516 IDS_SETTINGS_PEOPLE_CONFIGURE_PIN_CONTINUE_BUTTON }, |
517 { "configurePinMismatched", IDS_SETTINGS_PEOPLE_CONFIGURE_PIN_MISMATCHED }, | 517 { "configurePinMismatched", IDS_SETTINGS_PEOPLE_CONFIGURE_PIN_MISMATCHED }, |
518 { "configurePinTooShort", IDS_SETTINGS_PEOPLE_CONFIGURE_PIN_TOO_SHORT} , | 518 { "configurePinTooShort", IDS_SETTINGS_PEOPLE_CONFIGURE_PIN_TOO_SHORT} , |
519 { "configurePinTooLong", IDS_SETTINGS_PEOPLE_CONFIGURE_PIN_TOO_LONG} , | 519 { "configurePinTooLong", IDS_SETTINGS_PEOPLE_CONFIGURE_PIN_TOO_LONG} , |
520 { "configurePinWeakPin", IDS_SETTINGS_PEOPLE_CONFIGURE_PIN_WEAK_PIN }, | 520 { "configurePinWeakPin", IDS_SETTINGS_PEOPLE_CONFIGURE_PIN_WEAK_PIN }, |
| 521 { "lockScreenAddFingerprint", |
| 522 IDS_SETTINGS_PEOPLE_LOCK_SCREEN_ADD_FINGERPRINT_BUTTON}, |
| 523 { "lockScreenCannotAddFingerprint", |
| 524 IDS_SETTINGS_PEOPLE_LOCK_SCREEN_CANNOT_ADD_NEW_FINGERPRINT}, |
521 { "lockScreenChangePinButton", | 525 { "lockScreenChangePinButton", |
522 IDS_SETTINGS_PEOPLE_LOCK_SCREEN_CHANGE_PIN_BUTTON}, | 526 IDS_SETTINGS_PEOPLE_LOCK_SCREEN_CHANGE_PIN_BUTTON}, |
| 527 { "lockScreenFingerprintEnable", |
| 528 IDS_SETTINGS_PEOPLE_LOCK_SCREEN_ENABLE_FINGERPRINT_CHECKBOX_LABEL}, |
| 529 { "lockScreenFingerprintNewName", |
| 530 IDS_SETTINGS_PEOPLE_LOCK_SCREEN_NEW_FINGERPRINT_DEFAULT_NAME}, |
| 531 { "lockScreenFingerprintWarning", |
| 532 IDS_SETTINGS_PEOPLE_LOCK_SCREEN_FINGERPRINT_LESS_SECURE}, |
523 { "lockScreenNone", IDS_SETTINGS_PEOPLE_LOCK_SCREEN_NONE }, | 533 { "lockScreenNone", IDS_SETTINGS_PEOPLE_LOCK_SCREEN_NONE }, |
524 { "lockScreenPasswordOnly", IDS_SETTINGS_PEOPLE_LOCK_SCREEN_PASSWORD_ONLY }, | 534 { "lockScreenPasswordOnly", IDS_SETTINGS_PEOPLE_LOCK_SCREEN_PASSWORD_ONLY }, |
525 { "lockScreenPinOrPassword", | 535 { "lockScreenPinOrPassword", |
526 IDS_SETTINGS_PEOPLE_LOCK_SCREEN_PIN_OR_PASSWORD }, | 536 IDS_SETTINGS_PEOPLE_LOCK_SCREEN_PIN_OR_PASSWORD }, |
| 537 { "lockScreenRegisteredFingerprints", |
| 538 IDS_SETTINGS_PEOPLE_LOCK_SCREEN_REGISTERED_FINGERPRINTS_LABEL}, |
527 { "lockScreenSetupPinButton", | 539 { "lockScreenSetupPinButton", |
528 IDS_SETTINGS_PEOPLE_LOCK_SCREEN_SETUP_PIN_BUTTON }, | 540 IDS_SETTINGS_PEOPLE_LOCK_SCREEN_SETUP_PIN_BUTTON }, |
529 { "lockScreenTitle", IDS_SETTINGS_PEOPLE_LOCK_SCREEN_TITLE }, | 541 { "lockScreenTitle", IDS_SETTINGS_PEOPLE_LOCK_SCREEN_TITLE }, |
530 { "passwordPromptEnterPassword", | 542 { "passwordPromptEnterPassword", |
531 IDS_SETTINGS_PEOPLE_PASSWORD_PROMPT_ENTER_PASSWORD }, | 543 IDS_SETTINGS_PEOPLE_PASSWORD_PROMPT_ENTER_PASSWORD }, |
532 { "passwordPromptInvalidPassword", | 544 { "passwordPromptInvalidPassword", |
533 IDS_SETTINGS_PEOPLE_PASSWORD_PROMPT_INVALID_PASSWORD }, | 545 IDS_SETTINGS_PEOPLE_PASSWORD_PROMPT_INVALID_PASSWORD }, |
534 { "passwordPromptPasswordLabel", | 546 { "passwordPromptPasswordLabel", |
535 IDS_SETTINGS_PEOPLE_PASSWORD_PROMPT_PASSWORD_LABEL }, | 547 IDS_SETTINGS_PEOPLE_PASSWORD_PROMPT_PASSWORD_LABEL }, |
536 { "passwordPromptTitle", IDS_SETTINGS_PEOPLE_PASSWORD_PROMPT_TITLE }, | 548 { "passwordPromptTitle", IDS_SETTINGS_PEOPLE_PASSWORD_PROMPT_TITLE }, |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
762 base::CommandLine::ForCurrentProcess()->HasSwitch( | 774 base::CommandLine::ForCurrentProcess()->HasSwitch( |
763 chromeos::switches::kEnableExperimentalAccessibilityFeatures)); | 775 chromeos::switches::kEnableExperimentalAccessibilityFeatures)); |
764 | 776 |
765 chromeos::CrosSettings* cros_settings = chromeos::CrosSettings::Get(); | 777 chromeos::CrosSettings* cros_settings = chromeos::CrosSettings::Get(); |
766 bool allow_bluetooth = true; | 778 bool allow_bluetooth = true; |
767 cros_settings->GetBoolean(chromeos::kAllowBluetooth, &allow_bluetooth); | 779 cros_settings->GetBoolean(chromeos::kAllowBluetooth, &allow_bluetooth); |
768 values->SetBoolean("allowBluetooth", allow_bluetooth); | 780 values->SetBoolean("allowBluetooth", allow_bluetooth); |
769 | 781 |
770 values->SetBoolean("showQuickUnlockSettings", | 782 values->SetBoolean("showQuickUnlockSettings", |
771 chromeos::IsPinUnlockEnabled(profile->GetPrefs())); | 783 chromeos::IsPinUnlockEnabled(profile->GetPrefs())); |
| 784 values->SetBoolean("fingerprintUnlockEnabled", |
| 785 chromeos::IsFingerprintUnlockEnabled()); |
772 if (chromeos::IsPinUnlockEnabled(profile->GetPrefs())) { | 786 if (chromeos::IsPinUnlockEnabled(profile->GetPrefs())) { |
773 values->SetString( | 787 values->SetString( |
774 "enableScreenlock", | 788 "enableScreenlock", |
775 l10n_util::GetStringUTF16( | 789 l10n_util::GetStringUTF16( |
776 IDS_OPTIONS_ENABLE_SCREENLOCKER_CHECKBOX_WITH_QUICK_UNLOCK)); | 790 IDS_OPTIONS_ENABLE_SCREENLOCKER_CHECKBOX_WITH_QUICK_UNLOCK)); |
777 } else { | 791 } else { |
778 values->SetString( | 792 values->SetString( |
779 "enableScreenlock", | 793 "enableScreenlock", |
780 l10n_util::GetStringUTF16(IDS_OPTIONS_ENABLE_SCREENLOCKER_CHECKBOX)); | 794 l10n_util::GetStringUTF16(IDS_OPTIONS_ENABLE_SCREENLOCKER_CHECKBOX)); |
781 } | 795 } |
(...skipping 1518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2300 | 2314 |
2301 bool BrowserOptionsHandler::IsDeviceOwnerProfile() { | 2315 bool BrowserOptionsHandler::IsDeviceOwnerProfile() { |
2302 #if defined(OS_CHROMEOS) | 2316 #if defined(OS_CHROMEOS) |
2303 return chromeos::ProfileHelper::IsOwnerProfile(Profile::FromWebUI(web_ui())); | 2317 return chromeos::ProfileHelper::IsOwnerProfile(Profile::FromWebUI(web_ui())); |
2304 #else | 2318 #else |
2305 return true; | 2319 return true; |
2306 #endif | 2320 #endif |
2307 } | 2321 } |
2308 | 2322 |
2309 } // namespace options | 2323 } // namespace options |
OLD | NEW |