OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/auth/user_context.h" | 5 #include "chromeos/login/auth/user_context.h" |
6 | 6 #include "chromeos/login/user_names.h" |
7 #include "chrome/browser/chromeos/login/helper.h" | |
8 | 7 |
9 namespace chromeos { | 8 namespace chromeos { |
10 | 9 |
11 UserContext::UserContext() | 10 UserContext::UserContext() |
12 : is_using_oauth_(true), | 11 : is_using_oauth_(true), |
13 auth_flow_(AUTH_FLOW_OFFLINE), | 12 auth_flow_(AUTH_FLOW_OFFLINE), |
14 user_type_(user_manager::USER_TYPE_REGULAR) { | 13 user_type_(user_manager::USER_TYPE_REGULAR) { |
15 } | 14 } |
16 | 15 |
17 UserContext::UserContext(const UserContext& other) | 16 UserContext::UserContext(const UserContext& other) |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 void UserContext::SetUserType(user_manager::UserType user_type) { | 120 void UserContext::SetUserType(user_manager::UserType user_type) { |
122 user_type_ = user_type; | 121 user_type_ = user_type; |
123 } | 122 } |
124 | 123 |
125 void UserContext::ClearSecrets() { | 124 void UserContext::ClearSecrets() { |
126 key_.ClearSecret(); | 125 key_.ClearSecret(); |
127 auth_code_.clear(); | 126 auth_code_.clear(); |
128 } | 127 } |
129 | 128 |
130 } // namespace chromeos | 129 } // namespace chromeos |
OLD | NEW |