| 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_manager.h" | 5 #include "chrome/browser/chromeos/login/user_manager.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
| 13 #include "base/file_util.h" | 13 #include "base/file_util.h" |
| 14 #include "base/lazy_instance.h" | 14 #include "base/lazy_instance.h" |
| 15 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
| 17 #include "base/metrics/histogram.h" | 17 #include "base/metrics/histogram.h" |
| 18 #include "base/path_service.h" | 18 #include "base/path_service.h" |
| 19 #include "base/rand_util.h" | 19 #include "base/rand_util.h" |
| 20 #include "base/string_util.h" | 20 #include "base/string_util.h" |
| 21 #include "base/stringprintf.h" | 21 #include "base/stringprintf.h" |
| 22 #include "base/task.h" | |
| 23 #include "base/time.h" | 22 #include "base/time.h" |
| 24 #include "base/utf_string_conversions.h" | 23 #include "base/utf_string_conversions.h" |
| 25 #include "base/values.h" | 24 #include "base/values.h" |
| 26 #include "chrome/browser/browser_process.h" | 25 #include "chrome/browser/browser_process.h" |
| 27 #include "chrome/browser/chromeos/cros_settings.h" | 26 #include "chrome/browser/chromeos/cros_settings.h" |
| 28 #include "chrome/browser/chromeos/cros/cert_library.h" | 27 #include "chrome/browser/chromeos/cros/cert_library.h" |
| 29 #include "chrome/browser/chromeos/cros/cros_library.h" | 28 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 30 #include "chrome/browser/chromeos/cros/cryptohome_library.h" | 29 #include "chrome/browser/chromeos/cros/cryptohome_library.h" |
| 31 #include "chrome/browser/chromeos/input_method/input_method_manager.h" | 30 #include "chrome/browser/chromeos/input_method/input_method_manager.h" |
| 32 #include "chrome/browser/chromeos/login/default_user_images.h" | 31 #include "chrome/browser/chromeos/login/default_user_images.h" |
| (...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 981 | 980 |
| 982 User* UserManager::CreateUser(const std::string& email) const { | 981 User* UserManager::CreateUser(const std::string& email) const { |
| 983 User* user = new User(email, email == kGuestUser); | 982 User* user = new User(email, email == kGuestUser); |
| 984 user->set_oauth_token_status(LoadUserOAuthStatus(email)); | 983 user->set_oauth_token_status(LoadUserOAuthStatus(email)); |
| 985 // Used to determine whether user's display name is unique. | 984 // Used to determine whether user's display name is unique. |
| 986 ++display_name_count_[user->GetDisplayName()]; | 985 ++display_name_count_[user->GetDisplayName()]; |
| 987 return user; | 986 return user; |
| 988 } | 987 } |
| 989 | 988 |
| 990 } // namespace chromeos | 989 } // namespace chromeos |
| OLD | NEW |