| 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 "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/message_loop/message_loop.h" | 6 #include "base/message_loop/message_loop.h" |
| 7 #include "chrome/browser/chromeos/login/user_flow.h" | 7 #include "chrome/browser/chromeos/login/user_flow.h" |
| 8 #include "chrome/browser/chromeos/login/users/chrome_user_manager.h" | 8 #include "chrome/browser/chromeos/login/users/chrome_user_manager.h" |
| 9 #include "components/signin/core/account_id/account_id.h" | |
| 10 | 9 |
| 11 namespace chromeos { | 10 namespace chromeos { |
| 12 | 11 |
| 13 namespace { | 12 namespace { |
| 14 | 13 |
| 15 void UnregisterFlow(const std::string& user_id) { | 14 void UnregisterFlow(const std::string& user_id) { |
| 16 ChromeUserManager::Get()->ResetUserFlow(AccountId::FromUserEmail(user_id)); | 15 ChromeUserManager::Get()->ResetUserFlow(user_id); |
| 17 } | 16 } |
| 18 | 17 |
| 19 } // namespace | 18 } // namespace |
| 20 | 19 |
| 21 | 20 |
| 22 UserFlow::UserFlow() : host_(NULL) {} | 21 UserFlow::UserFlow() : host_(NULL) {} |
| 23 | 22 |
| 24 UserFlow::~UserFlow() {} | 23 UserFlow::~UserFlow() {} |
| 25 | 24 |
| 26 void UserFlow::SetHost(LoginDisplayHost* host) { | 25 void UserFlow::SetHost(LoginDisplayHost* host) { |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 } | 88 } |
| 90 | 89 |
| 91 void ExtendedUserFlow::UnregisterFlowSoon() { | 90 void ExtendedUserFlow::UnregisterFlowSoon() { |
| 92 std::string id_copy(user_id()); | 91 std::string id_copy(user_id()); |
| 93 base::MessageLoop::current()->PostTask(FROM_HERE, | 92 base::MessageLoop::current()->PostTask(FROM_HERE, |
| 94 base::Bind(&UnregisterFlow, | 93 base::Bind(&UnregisterFlow, |
| 95 id_copy)); | 94 id_copy)); |
| 96 } | 95 } |
| 97 | 96 |
| 98 } // namespace chromeos | 97 } // namespace chromeos |
| OLD | NEW |