Merge "Revert "DevicePolicy: Don't warn about managed profile CAs"" into lmp-mr1-dev

This commit is contained in:
Robin Lee
2014-12-23 12:30:26 +00:00
committed by Android (Google) Code Review

View File

@@ -1662,15 +1662,9 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
} }
private void manageNotification(UserHandle userHandle) { private void manageNotification(UserHandle userHandle) {
final UserInfo userInfo = mUserManager.getUserInfo(userHandle.getIdentifier());
// Inactive users or managed profiles shouldn't provoke a warning
if (!mUserManager.isUserRunning(userHandle)) { if (!mUserManager.isUserRunning(userHandle)) {
return; return;
} }
if (userInfo == null || userInfo.isManagedProfile()) {
return;
}
// Call out to KeyChain to check for user-added CAs // Call out to KeyChain to check for user-added CAs
boolean hasCert = false; boolean hasCert = false;