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

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

Issue 444903002: [cros] user_manager component - move UserManagerBase and UserManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: similarity Created 6 years, 4 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 | Annotate | Revision Log
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/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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698