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 "chrome/browser/chromeos/login/user.h" | 5 #include "chrome/browser/chromeos/login/user.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "base/threading/thread_restrictions.h" | 10 #include "base/threading/thread_restrictions.h" |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 return new RetailModeUser; | 221 return new RetailModeUser; |
222 } | 222 } |
223 | 223 |
224 User* User::CreatePublicAccountUser(const std::string& email) { | 224 User* User::CreatePublicAccountUser(const std::string& email) { |
225 return new PublicAccountUser(email); | 225 return new PublicAccountUser(email); |
226 } | 226 } |
227 | 227 |
228 User::User(const std::string& email) | 228 User::User(const std::string& email) |
229 : email_(email), | 229 : email_(email), |
230 oauth_token_status_(OAUTH_TOKEN_STATUS_UNKNOWN), | 230 oauth_token_status_(OAUTH_TOKEN_STATUS_UNKNOWN), |
| 231 force_online_signin_(false), |
231 image_index_(kInvalidImageIndex), | 232 image_index_(kInvalidImageIndex), |
232 image_is_stub_(false), | 233 image_is_stub_(false), |
233 image_is_loading_(false), | 234 image_is_loading_(false), |
234 is_logged_in_(false), | 235 is_logged_in_(false), |
235 is_active_(false), | 236 is_active_(false), |
236 profile_is_created_(false) { | 237 profile_is_created_(false) { |
237 } | 238 } |
238 | 239 |
239 User::~User() {} | 240 User::~User() {} |
240 | 241 |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 case USER_TYPE_LOCALLY_MANAGED: | 351 case USER_TYPE_LOCALLY_MANAGED: |
351 case USER_TYPE_KIOSK_APP: | 352 case USER_TYPE_KIOSK_APP: |
352 return false; | 353 return false; |
353 default: | 354 default: |
354 NOTREACHED(); | 355 NOTREACHED(); |
355 } | 356 } |
356 return false; | 357 return false; |
357 } | 358 } |
358 | 359 |
359 } // namespace chromeos | 360 } // namespace chromeos |
OLD | NEW |