| 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 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 bool setting_enabled; | 531 bool setting_enabled; |
| 532 if (value.GetAsBoolean(&setting_enabled)) { | 532 if (value.GetAsBoolean(&setting_enabled)) { |
| 533 attestation_settings->set_content_protection_enabled(setting_enabled); | 533 attestation_settings->set_content_protection_enabled(setting_enabled); |
| 534 } else { | 534 } else { |
| 535 NOTREACHED(); | 535 NOTREACHED(); |
| 536 } | 536 } |
| 537 } else { | 537 } else { |
| 538 // The remaining settings don't support Set(), since they are not | 538 // The remaining settings don't support Set(), since they are not |
| 539 // intended to be customizable by the user: | 539 // intended to be customizable by the user: |
| 540 // kAccountsPrefTransferSAMLCookies | 540 // kAccountsPrefTransferSAMLCookies |
| 541 // kAppPack | |
| 542 // kDeviceAttestationEnabled | 541 // kDeviceAttestationEnabled |
| 543 // kDeviceOwner | 542 // kDeviceOwner |
| 544 // kIdleLogoutTimeout | |
| 545 // kIdleLogoutWarningDuration | |
| 546 // kReleaseChannelDelegated | 543 // kReleaseChannelDelegated |
| 547 // kReportDeviceActivityTimes | 544 // kReportDeviceActivityTimes |
| 548 // kReportDeviceBootMode | 545 // kReportDeviceBootMode |
| 549 // kReportDeviceLocation | 546 // kReportDeviceLocation |
| 550 // kReportDeviceVersionInfo | 547 // kReportDeviceVersionInfo |
| 551 // kReportDeviceNetworkInterfaces | 548 // kReportDeviceNetworkInterfaces |
| 552 // kReportDeviceUsers | 549 // kReportDeviceUsers |
| 553 // kScreenSaverExtensionId | |
| 554 // kScreenSaverTimeout | |
| 555 // kServiceAccountIdentity | 550 // kServiceAccountIdentity |
| 556 // kStartUpUrls | |
| 557 // kSystemTimezonePolicy | 551 // kSystemTimezonePolicy |
| 558 // kVariationsRestrictParameter | 552 // kVariationsRestrictParameter |
| 559 // kDeviceDisabled | 553 // kDeviceDisabled |
| 560 // kDeviceDisabledMessage | 554 // kDeviceDisabledMessage |
| 561 | 555 |
| 562 LOG(FATAL) << "Device setting " << path << " is read-only."; | 556 LOG(FATAL) << "Device setting " << path << " is read-only."; |
| 563 } | 557 } |
| 564 } | 558 } |
| 565 | 559 |
| 566 void OwnerSettingsServiceChromeOS::OnPostKeypairLoadedActions() { | 560 void OwnerSettingsServiceChromeOS::OnPostKeypairLoadedActions() { |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 647 | 641 |
| 648 void OwnerSettingsServiceChromeOS::ReportStatusAndContinueStoring( | 642 void OwnerSettingsServiceChromeOS::ReportStatusAndContinueStoring( |
| 649 bool success) { | 643 bool success) { |
| 650 store_settings_factory_.InvalidateWeakPtrs(); | 644 store_settings_factory_.InvalidateWeakPtrs(); |
| 651 FOR_EACH_OBSERVER(OwnerSettingsService::Observer, observers_, | 645 FOR_EACH_OBSERVER(OwnerSettingsService::Observer, observers_, |
| 652 OnSignedPolicyStored(success)); | 646 OnSignedPolicyStored(success)); |
| 653 StorePendingChanges(); | 647 StorePendingChanges(); |
| 654 } | 648 } |
| 655 | 649 |
| 656 } // namespace chromeos | 650 } // namespace chromeos |
| OLD | NEW |