| 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/location.h" |
| 7 #include "base/single_thread_task_runner.h" |
| 8 #include "base/threading/thread_task_runner_handle.h" |
| 7 #include "chrome/browser/chromeos/login/user_flow.h" | 9 #include "chrome/browser/chromeos/login/user_flow.h" |
| 8 #include "chrome/browser/chromeos/login/users/chrome_user_manager.h" | 10 #include "chrome/browser/chromeos/login/users/chrome_user_manager.h" |
| 9 #include "components/signin/core/account_id/account_id.h" | 11 #include "components/signin/core/account_id/account_id.h" |
| 10 | 12 |
| 11 namespace chromeos { | 13 namespace chromeos { |
| 12 | 14 |
| 13 UserFlow::UserFlow() : host_(NULL) {} | 15 UserFlow::UserFlow() : host_(NULL) {} |
| 14 | 16 |
| 15 UserFlow::~UserFlow() {} | 17 UserFlow::~UserFlow() {} |
| 16 | 18 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 74 |
| 73 bool ExtendedUserFlow::ShouldShowSettings() { | 75 bool ExtendedUserFlow::ShouldShowSettings() { |
| 74 return true; | 76 return true; |
| 75 } | 77 } |
| 76 | 78 |
| 77 void ExtendedUserFlow::HandleOAuthTokenStatusChange( | 79 void ExtendedUserFlow::HandleOAuthTokenStatusChange( |
| 78 user_manager::User::OAuthTokenStatus status) { | 80 user_manager::User::OAuthTokenStatus status) { |
| 79 } | 81 } |
| 80 | 82 |
| 81 void ExtendedUserFlow::UnregisterFlowSoon() { | 83 void ExtendedUserFlow::UnregisterFlowSoon() { |
| 82 base::MessageLoop::current()->PostTask( | 84 base::ThreadTaskRunnerHandle::Get()->PostTask( |
| 83 FROM_HERE, | 85 FROM_HERE, |
| 84 base::Bind(&ChromeUserManager::ResetUserFlow, | 86 base::Bind(&ChromeUserManager::ResetUserFlow, |
| 85 base::Unretained(ChromeUserManager::Get()), account_id())); | 87 base::Unretained(ChromeUserManager::Get()), account_id())); |
| 86 } | 88 } |
| 87 | 89 |
| 88 } // namespace chromeos | 90 } // namespace chromeos |
| OLD | NEW |