| 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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 return new RetailModeUser; | 219 return new RetailModeUser; |
| 220 } | 220 } |
| 221 | 221 |
| 222 User* User::CreatePublicAccountUser(const std::string& email) { | 222 User* User::CreatePublicAccountUser(const std::string& email) { |
| 223 return new PublicAccountUser(email); | 223 return new PublicAccountUser(email); |
| 224 } | 224 } |
| 225 | 225 |
| 226 User::User(const std::string& email) | 226 User::User(const std::string& email) |
| 227 : email_(email), | 227 : email_(email), |
| 228 oauth_token_status_(OAUTH_TOKEN_STATUS_UNKNOWN), | 228 oauth_token_status_(OAUTH_TOKEN_STATUS_UNKNOWN), |
| 229 force_online_signin_(false), |
| 229 image_index_(kInvalidImageIndex), | 230 image_index_(kInvalidImageIndex), |
| 230 image_is_stub_(false), | 231 image_is_stub_(false), |
| 231 image_is_loading_(false), | 232 image_is_loading_(false), |
| 232 can_lock_(false), | 233 can_lock_(false), |
| 233 is_logged_in_(false), | 234 is_logged_in_(false), |
| 234 is_active_(false), | 235 is_active_(false), |
| 235 profile_is_created_(false) { | 236 profile_is_created_(false) { |
| 236 } | 237 } |
| 237 | 238 |
| 238 User::~User() {} | 239 User::~User() {} |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 case USER_TYPE_LOCALLY_MANAGED: | 344 case USER_TYPE_LOCALLY_MANAGED: |
| 344 case USER_TYPE_KIOSK_APP: | 345 case USER_TYPE_KIOSK_APP: |
| 345 return false; | 346 return false; |
| 346 default: | 347 default: |
| 347 NOTREACHED(); | 348 NOTREACHED(); |
| 348 } | 349 } |
| 349 return false; | 350 return false; |
| 350 } | 351 } |
| 351 | 352 |
| 352 } // namespace chromeos | 353 } // namespace chromeos |
| OLD | NEW |