| 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 | 9 |
| 10 namespace chromeos { | 10 namespace chromeos { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 } | 33 } |
| 34 | 34 |
| 35 bool DefaultUserFlow::ShouldLaunchBrowser() { | 35 bool DefaultUserFlow::ShouldLaunchBrowser() { |
| 36 return true; | 36 return true; |
| 37 } | 37 } |
| 38 | 38 |
| 39 bool DefaultUserFlow::ShouldSkipPostLoginScreens() { | 39 bool DefaultUserFlow::ShouldSkipPostLoginScreens() { |
| 40 return false; | 40 return false; |
| 41 } | 41 } |
| 42 | 42 |
| 43 bool DefaultUserFlow::SupportsEarlyRestartToApplyFlags() { |
| 44 return true; |
| 45 } |
| 46 |
| 43 bool DefaultUserFlow::HandleLoginFailure(const AuthFailure& failure) { | 47 bool DefaultUserFlow::HandleLoginFailure(const AuthFailure& failure) { |
| 44 return false; | 48 return false; |
| 45 } | 49 } |
| 46 | 50 |
| 47 void DefaultUserFlow::HandleLoginSuccess(const UserContext& context) {} | 51 void DefaultUserFlow::HandleLoginSuccess(const UserContext& context) {} |
| 48 | 52 |
| 49 bool DefaultUserFlow::HandlePasswordChangeDetected() { | 53 bool DefaultUserFlow::HandlePasswordChangeDetected() { |
| 50 return false; | 54 return false; |
| 51 } | 55 } |
| 52 | 56 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 69 } | 73 } |
| 70 | 74 |
| 71 void ExtendedUserFlow::UnregisterFlowSoon() { | 75 void ExtendedUserFlow::UnregisterFlowSoon() { |
| 72 std::string id_copy(user_id()); | 76 std::string id_copy(user_id()); |
| 73 base::MessageLoop::current()->PostTask(FROM_HERE, | 77 base::MessageLoop::current()->PostTask(FROM_HERE, |
| 74 base::Bind(&UnregisterFlow, | 78 base::Bind(&UnregisterFlow, |
| 75 id_copy)); | 79 id_copy)); |
| 76 } | 80 } |
| 77 | 81 |
| 78 } // namespace chromeos | 82 } // namespace chromeos |
| OLD | NEW |