| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/chromeos/ownership/owner_settings_service_chromeos.h" | 5 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 bool setting_enabled; | 595 bool setting_enabled; |
| 596 if (value.GetAsBoolean(&setting_enabled)) { | 596 if (value.GetAsBoolean(&setting_enabled)) { |
| 597 attestation_settings->set_content_protection_enabled(setting_enabled); | 597 attestation_settings->set_content_protection_enabled(setting_enabled); |
| 598 } else { | 598 } else { |
| 599 NOTREACHED(); | 599 NOTREACHED(); |
| 600 } | 600 } |
| 601 } else { | 601 } else { |
| 602 // The remaining settings don't support Set(), since they are not | 602 // The remaining settings don't support Set(), since they are not |
| 603 // intended to be customizable by the user: | 603 // intended to be customizable by the user: |
| 604 // kAccountsPrefTransferSAMLCookies | 604 // kAccountsPrefTransferSAMLCookies |
| 605 // kAppPack | |
| 606 // kDeviceAttestationEnabled | 605 // kDeviceAttestationEnabled |
| 607 // kDeviceOwner | 606 // kDeviceOwner |
| 608 // kIdleLogoutTimeout | |
| 609 // kIdleLogoutWarningDuration | |
| 610 // kReleaseChannelDelegated | 607 // kReleaseChannelDelegated |
| 611 // kReportDeviceActivityTimes | 608 // kReportDeviceActivityTimes |
| 612 // kReportDeviceBootMode | 609 // kReportDeviceBootMode |
| 613 // kReportDeviceLocation | 610 // kReportDeviceLocation |
| 614 // kReportDeviceVersionInfo | 611 // kReportDeviceVersionInfo |
| 615 // kReportDeviceNetworkInterfaces | 612 // kReportDeviceNetworkInterfaces |
| 616 // kReportDeviceUsers | 613 // kReportDeviceUsers |
| 617 // kReportDeviceHardwareStatus | 614 // kReportDeviceHardwareStatus |
| 618 // kScreenSaverExtensionId | |
| 619 // kScreenSaverTimeout | |
| 620 // kServiceAccountIdentity | 615 // kServiceAccountIdentity |
| 621 // kStartUpUrls | |
| 622 // kSystemTimezonePolicy | 616 // kSystemTimezonePolicy |
| 623 // kVariationsRestrictParameter | 617 // kVariationsRestrictParameter |
| 624 // kDeviceDisabled | 618 // kDeviceDisabled |
| 625 // kDeviceDisabledMessage | 619 // kDeviceDisabledMessage |
| 626 | 620 |
| 627 LOG(FATAL) << "Device setting " << path << " is read-only."; | 621 LOG(FATAL) << "Device setting " << path << " is read-only."; |
| 628 } | 622 } |
| 629 } | 623 } |
| 630 | 624 |
| 631 void OwnerSettingsServiceChromeOS::OnPostKeypairLoadedActions() { | 625 void OwnerSettingsServiceChromeOS::OnPostKeypairLoadedActions() { |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 728 std::vector<OnManagementSettingsSetCallback> callbacks; | 722 std::vector<OnManagementSettingsSetCallback> callbacks; |
| 729 pending_management_settings_callbacks_.swap(callbacks); | 723 pending_management_settings_callbacks_.swap(callbacks); |
| 730 for (const auto& callback : callbacks) { | 724 for (const auto& callback : callbacks) { |
| 731 if (!callback.is_null()) | 725 if (!callback.is_null()) |
| 732 callback.Run(success); | 726 callback.Run(success); |
| 733 } | 727 } |
| 734 StorePendingChanges(); | 728 StorePendingChanges(); |
| 735 } | 729 } |
| 736 | 730 |
| 737 } // namespace chromeos | 731 } // namespace chromeos |
| OLD | NEW |