OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/login/existing_user_controller.h" | 5 #include "chrome/browser/chromeos/login/existing_user_controller.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <functional> | 8 #include <functional> |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 : user_email_(user_email) { | 60 : user_email_(user_email) { |
61 if (CrosLibrary::Get()->EnsureLoaded()) { | 61 if (CrosLibrary::Get()->EnsureLoaded()) { |
62 CrosLibrary::Get()->GetCryptohomeLibrary()->AsyncRemove( | 62 CrosLibrary::Get()->GetCryptohomeLibrary()->AsyncRemove( |
63 user_email_, this); | 63 user_email_, this); |
64 } | 64 } |
65 } | 65 } |
66 | 66 |
67 void OnComplete(bool success, int return_code) { | 67 void OnComplete(bool success, int return_code) { |
68 // Log the error, but there's not much we can do. | 68 // Log the error, but there's not much we can do. |
69 if (!success) { | 69 if (!success) { |
70 LOG(INFO) << "Removal of cryptohome for " << user_email_ | 70 VLOG(1) << "Removal of cryptohome for " << user_email_ |
71 << " failed, return code: " << return_code; | 71 << " failed, return code: " << return_code; |
72 } | 72 } |
73 delete this; | 73 delete this; |
74 } | 74 } |
75 | 75 |
76 private: | 76 private: |
77 std::string user_email_; | 77 std::string user_email_; |
78 }; | 78 }; |
79 | 79 |
80 // Checks if display names are unique. If there are duplicates, enables | 80 // Checks if display names are unique. If there are duplicates, enables |
81 // tooltips with full emails to let users distinguish their accounts. | 81 // tooltips with full emails to let users distinguish their accounts. |
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 void ExistingUserController::RecoverEncryptedData( | 546 void ExistingUserController::RecoverEncryptedData( |
547 const std::string& old_password) { | 547 const std::string& old_password) { |
548 login_performer_->RecoverEncryptedData(old_password); | 548 login_performer_->RecoverEncryptedData(old_password); |
549 } | 549 } |
550 | 550 |
551 void ExistingUserController::ResyncEncryptedData() { | 551 void ExistingUserController::ResyncEncryptedData() { |
552 login_performer_->ResyncEncryptedData(); | 552 login_performer_->ResyncEncryptedData(); |
553 } | 553 } |
554 | 554 |
555 } // namespace chromeos | 555 } // namespace chromeos |
OLD | NEW |