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

Side by Side Diff: chrome/browser/chromeos/ownership/owner_settings_service_chromeos.cc

Issue 907323002: Implemented DeviceStatusCollector::GetDeviceSessionStatus() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review feedback. Created 5 years, 10 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 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 628 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 } 639 }
640 } else { 640 } else {
641 // The remaining settings don't support Set(), since they are not 641 // The remaining settings don't support Set(), since they are not
642 // intended to be customizable by the user: 642 // intended to be customizable by the user:
643 // kAccountsPrefTransferSAMLCookies 643 // kAccountsPrefTransferSAMLCookies
644 // kDeviceAttestationEnabled 644 // kDeviceAttestationEnabled
645 // kDeviceOwner 645 // kDeviceOwner
646 // kReleaseChannelDelegated 646 // kReleaseChannelDelegated
647 // kReportDeviceActivityTimes 647 // kReportDeviceActivityTimes
648 // kReportDeviceBootMode 648 // kReportDeviceBootMode
649 // kReportDeviceHardwareStatus
649 // kReportDeviceLocation 650 // kReportDeviceLocation
651 // kReportDeviceNetworkInterfaces
652 // kReportDeviceSessionStatus
650 // kReportDeviceVersionInfo 653 // kReportDeviceVersionInfo
651 // kReportDeviceNetworkInterfaces
652 // kReportDeviceUsers 654 // kReportDeviceUsers
653 // kReportDeviceHardwareStatus
654 // kServiceAccountIdentity 655 // kServiceAccountIdentity
655 // kSystemTimezonePolicy 656 // kSystemTimezonePolicy
656 // kVariationsRestrictParameter 657 // kVariationsRestrictParameter
657 // kDeviceDisabled 658 // kDeviceDisabled
658 // kDeviceDisabledMessage 659 // kDeviceDisabledMessage
659 660
660 LOG(FATAL) << "Device setting " << path << " is read-only."; 661 LOG(FATAL) << "Device setting " << path << " is read-only.";
661 } 662 }
662 } 663 }
663 664
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 std::vector<OnManagementSettingsSetCallback> callbacks; 770 std::vector<OnManagementSettingsSetCallback> callbacks;
770 pending_management_settings_callbacks_.swap(callbacks); 771 pending_management_settings_callbacks_.swap(callbacks);
771 for (const auto& callback : callbacks) { 772 for (const auto& callback : callbacks) {
772 if (!callback.is_null()) 773 if (!callback.is_null())
773 callback.Run(success); 774 callback.Run(success);
774 } 775 }
775 StorePendingChanges(); 776 StorePendingChanges();
776 } 777 }
777 778
778 } // namespace chromeos 779 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/users/mock_user_manager.cc ('k') | chrome/browser/chromeos/policy/device_status_collector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698