OLD | NEW |
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/user_cloud_policy_manager_chromeos.h" | 5 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 void OnWildcardCheckCompleted(const std::string& username, | 56 void OnWildcardCheckCompleted(const std::string& username, |
57 WildcardLoginChecker::Result result) { | 57 WildcardLoginChecker::Result result) { |
58 if (result == WildcardLoginChecker::RESULT_BLOCKED) { | 58 if (result == WildcardLoginChecker::RESULT_BLOCKED) { |
59 LOG(ERROR) << "Online wildcard login check failed, terminating session."; | 59 LOG(ERROR) << "Online wildcard login check failed, terminating session."; |
60 | 60 |
61 // TODO(mnissler): This only removes the user pod from the login screen, but | 61 // TODO(mnissler): This only removes the user pod from the login screen, but |
62 // the cryptohome remains. This is because deleting the cryptohome for a | 62 // the cryptohome remains. This is because deleting the cryptohome for a |
63 // logged-in session is not possible. Fix this either by delaying the | 63 // logged-in session is not possible. Fix this either by delaying the |
64 // cryptohome deletion operation or by getting rid of the in-session | 64 // cryptohome deletion operation or by getting rid of the in-session |
65 // wildcard check. | 65 // wildcard check. |
66 chromeos::UserManager::Get()->RemoveUserFromList(username); | 66 user_manager::UserManager::Get()->RemoveUserFromList(username); |
67 chrome::AttemptUserExit(); | 67 chrome::AttemptUserExit(); |
68 } | 68 } |
69 } | 69 } |
70 | 70 |
71 } // namespace | 71 } // namespace |
72 | 72 |
73 UserCloudPolicyManagerChromeOS::UserCloudPolicyManagerChromeOS( | 73 UserCloudPolicyManagerChromeOS::UserCloudPolicyManagerChromeOS( |
74 scoped_ptr<CloudPolicyStore> store, | 74 scoped_ptr<CloudPolicyStore> store, |
75 scoped_ptr<CloudExternalDataManager> external_data_manager, | 75 scoped_ptr<CloudExternalDataManager> external_data_manager, |
76 const base::FilePath& component_policy_cache_path, | 76 const base::FilePath& component_policy_cache_path, |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 // OnComponentCloudPolicyUpdated() once it's ready. | 388 // OnComponentCloudPolicyUpdated() once it's ready. |
389 return; | 389 return; |
390 } | 390 } |
391 | 391 |
392 core()->StartRefreshScheduler(); | 392 core()->StartRefreshScheduler(); |
393 core()->TrackRefreshDelayPref(local_state_, | 393 core()->TrackRefreshDelayPref(local_state_, |
394 policy_prefs::kUserPolicyRefreshRate); | 394 policy_prefs::kUserPolicyRefreshRate); |
395 } | 395 } |
396 | 396 |
397 } // namespace policy | 397 } // namespace policy |
OLD | NEW |