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

* commit 'b4b14e391dbcde537350ccf649b3603cafba1e6c':
  Revert "DevicePolicy: Don't warn about managed profile CAs"
This commit is contained in:
Robin Lee
2014-12-23 13:29:05 +00:00
committed by Android Git Automerger

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;