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/user_manager.h" | 8 #include "chrome/browser/chromeos/login/users/user_manager.h" |
9 | 9 |
10 namespace chromeos { | 10 namespace chromeos { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 return false; | 44 return false; |
45 } | 45 } |
46 | 46 |
47 void DefaultUserFlow::HandleLoginSuccess(const UserContext& context) {} | 47 void DefaultUserFlow::HandleLoginSuccess(const UserContext& context) {} |
48 | 48 |
49 bool DefaultUserFlow::HandlePasswordChangeDetected() { | 49 bool DefaultUserFlow::HandlePasswordChangeDetected() { |
50 return false; | 50 return false; |
51 } | 51 } |
52 | 52 |
53 void DefaultUserFlow::HandleOAuthTokenStatusChange( | 53 void DefaultUserFlow::HandleOAuthTokenStatusChange( |
54 User::OAuthTokenStatus status) { | 54 user_manager::User::OAuthTokenStatus status) { |
55 } | 55 } |
56 | 56 |
57 void DefaultUserFlow::LaunchExtraSteps(Profile* profile) { | 57 void DefaultUserFlow::LaunchExtraSteps(Profile* profile) { |
58 } | 58 } |
59 | 59 |
60 ExtendedUserFlow::ExtendedUserFlow(const std::string& user_id) | 60 ExtendedUserFlow::ExtendedUserFlow(const std::string& user_id) |
61 : user_id_(user_id) { | 61 : user_id_(user_id) { |
62 } | 62 } |
63 | 63 |
64 ExtendedUserFlow::~ExtendedUserFlow() { | 64 ExtendedUserFlow::~ExtendedUserFlow() { |
65 } | 65 } |
66 | 66 |
67 bool ExtendedUserFlow::ShouldShowSettings() { | 67 bool ExtendedUserFlow::ShouldShowSettings() { |
68 return true; | 68 return true; |
69 } | 69 } |
70 | 70 |
71 void ExtendedUserFlow::UnregisterFlowSoon() { | 71 void ExtendedUserFlow::UnregisterFlowSoon() { |
72 std::string id_copy(user_id()); | 72 std::string id_copy(user_id()); |
73 base::MessageLoop::current()->PostTask(FROM_HERE, | 73 base::MessageLoop::current()->PostTask(FROM_HERE, |
74 base::Bind(&UnregisterFlow, | 74 base::Bind(&UnregisterFlow, |
75 id_copy)); | 75 id_copy)); |
76 } | 76 } |
77 | 77 |
78 } // namespace chromeos | 78 } // namespace chromeos |
OLD | NEW |