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

Side by Side Diff: chrome/browser/chromeos/policy/device_status_collector.cc

Issue 2172023002: chrome/browser/chromeos: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 (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/chromeos/policy/device_status_collector.h" 5 #include "chrome/browser/chromeos/policy/device_status_collector.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after
874 874
875 if (!state->gateway().empty()) 875 if (!state->gateway().empty())
876 proto_state->set_gateway(state->gateway()); 876 proto_state->set_gateway(state->gateway());
877 } 877 }
878 } 878 }
879 879
880 void DeviceStatusCollector::GetUsers(em::DeviceStatusReportRequest* request) { 880 void DeviceStatusCollector::GetUsers(em::DeviceStatusReportRequest* request) {
881 const user_manager::UserList& users = 881 const user_manager::UserList& users =
882 chromeos::ChromeUserManager::Get()->GetUsers(); 882 chromeos::ChromeUserManager::Get()->GetUsers();
883 883
884 for (const auto& user : users) { 884 for (auto* user : users) {
885 // Only users with gaia accounts (regular) are reported. 885 // Only users with gaia accounts (regular) are reported.
886 if (!user->HasGaiaAccount()) 886 if (!user->HasGaiaAccount())
887 continue; 887 continue;
888 888
889 em::DeviceUser* device_user = request->add_user(); 889 em::DeviceUser* device_user = request->add_user();
890 if (chromeos::ChromeUserManager::Get()->ShouldReportUser(user->email())) { 890 if (chromeos::ChromeUserManager::Get()->ShouldReportUser(user->email())) {
891 device_user->set_type(em::DeviceUser::USER_TYPE_MANAGED); 891 device_user->set_type(em::DeviceUser::USER_TYPE_MANAGED);
892 device_user->set_email(user->email()); 892 device_user->set_email(user->email());
893 } else { 893 } else {
894 device_user->set_type(em::DeviceUser::USER_TYPE_UNMANAGED); 894 device_user->set_type(em::DeviceUser::USER_TYPE_UNMANAGED);
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
1160 ScheduleGeolocationUpdateRequest(); 1160 ScheduleGeolocationUpdateRequest();
1161 } 1161 }
1162 1162
1163 void DeviceStatusCollector::ReceiveVolumeInfo( 1163 void DeviceStatusCollector::ReceiveVolumeInfo(
1164 const std::vector<em::VolumeInfo>& info) { 1164 const std::vector<em::VolumeInfo>& info) {
1165 if (report_hardware_status_) 1165 if (report_hardware_status_)
1166 volume_info_ = info; 1166 volume_info_ = info;
1167 } 1167 }
1168 1168
1169 } // namespace policy 1169 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/users/mock_user_manager.cc ('k') | chrome/browser/chromeos/policy/system_log_uploader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698