| 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 "components/user_manager/user.h" | 5 #include "components/user_manager/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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 User::User(const std::string& email) | 198 User::User(const std::string& email) |
| 199 : email_(email), | 199 : email_(email), |
| 200 oauth_token_status_(OAUTH_TOKEN_STATUS_UNKNOWN), | 200 oauth_token_status_(OAUTH_TOKEN_STATUS_UNKNOWN), |
| 201 force_online_signin_(false), | 201 force_online_signin_(false), |
| 202 image_index_(USER_IMAGE_INVALID), | 202 image_index_(USER_IMAGE_INVALID), |
| 203 image_is_stub_(false), | 203 image_is_stub_(false), |
| 204 image_is_loading_(false), | 204 image_is_loading_(false), |
| 205 can_lock_(false), | 205 can_lock_(false), |
| 206 is_logged_in_(false), | 206 is_logged_in_(false), |
| 207 is_active_(false), | 207 is_active_(false), |
| 208 profile_is_created_(false) { | 208 profile_is_created_(false), |
| 209 is_affiliated_(false){ |
| 209 } | 210 } |
| 210 | 211 |
| 211 User::~User() { | 212 User::~User() { |
| 212 } | 213 } |
| 213 | 214 |
| 214 void User::SetAccountLocale(const std::string& resolved_account_locale) { | 215 void User::SetAccountLocale(const std::string& resolved_account_locale) { |
| 215 account_locale_.reset(new std::string(resolved_account_locale)); | 216 account_locale_.reset(new std::string(resolved_account_locale)); |
| 216 } | 217 } |
| 217 | 218 |
| 218 void User::SetImage(const UserImage& user_image, int image_index) { | 219 void User::SetImage(const UserImage& user_image, int image_index) { |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 case user_manager::USER_TYPE_SUPERVISED: | 320 case user_manager::USER_TYPE_SUPERVISED: |
| 320 case user_manager::USER_TYPE_KIOSK_APP: | 321 case user_manager::USER_TYPE_KIOSK_APP: |
| 321 return false; | 322 return false; |
| 322 default: | 323 default: |
| 323 NOTREACHED(); | 324 NOTREACHED(); |
| 324 } | 325 } |
| 325 return false; | 326 return false; |
| 326 } | 327 } |
| 327 | 328 |
| 328 } // namespace user_manager | 329 } // namespace user_manager |
| OLD | NEW |