| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #include "chrome/browser/chromeos/cros_settings.h" | 27 #include "chrome/browser/chromeos/cros_settings.h" |
| 28 #include "chrome/browser/chromeos/cros/cert_library.h" | 28 #include "chrome/browser/chromeos/cros/cert_library.h" |
| 29 #include "chrome/browser/chromeos/cros/cros_library.h" | 29 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 30 #include "chrome/browser/chromeos/cros/cryptohome_library.h" | 30 #include "chrome/browser/chromeos/cros/cryptohome_library.h" |
| 31 #include "chrome/browser/chromeos/input_method/input_method_manager.h" | 31 #include "chrome/browser/chromeos/input_method/input_method_manager.h" |
| 32 #include "chrome/browser/chromeos/login/default_user_images.h" | 32 #include "chrome/browser/chromeos/login/default_user_images.h" |
| 33 #include "chrome/browser/chromeos/login/helper.h" | 33 #include "chrome/browser/chromeos/login/helper.h" |
| 34 #include "chrome/browser/chromeos/login/login_display.h" | 34 #include "chrome/browser/chromeos/login/login_display.h" |
| 35 #include "chrome/browser/chromeos/login/ownership_service.h" | 35 #include "chrome/browser/chromeos/login/ownership_service.h" |
| 36 #include "chrome/browser/chromeos/system/runtime_environment.h" | 36 #include "chrome/browser/chromeos/system/runtime_environment.h" |
| 37 #include "chrome/browser/chromeos/user_cros_settings_provider.h" | |
| 38 #include "chrome/browser/prefs/pref_service.h" | 37 #include "chrome/browser/prefs/pref_service.h" |
| 39 #include "chrome/browser/prefs/scoped_user_pref_update.h" | 38 #include "chrome/browser/prefs/scoped_user_pref_update.h" |
| 40 #include "chrome/browser/profiles/profile_downloader.h" | 39 #include "chrome/browser/profiles/profile_downloader.h" |
| 41 #include "chrome/browser/profiles/profile_manager.h" | 40 #include "chrome/browser/profiles/profile_manager.h" |
| 42 #include "chrome/browser/ui/webui/web_ui_util.h" | 41 #include "chrome/browser/ui/webui/web_ui_util.h" |
| 43 #include "chrome/common/chrome_notification_types.h" | 42 #include "chrome/common/chrome_notification_types.h" |
| 44 #include "chrome/common/chrome_paths.h" | 43 #include "chrome/common/chrome_paths.h" |
| 45 #include "chrome/common/chrome_switches.h" | 44 #include "chrome/common/chrome_switches.h" |
| 46 #include "content/public/browser/browser_thread.h" | 45 #include "content/public/browser/browser_thread.h" |
| 47 #include "content/public/browser/notification_service.h" | 46 #include "content/public/browser/notification_service.h" |
| (...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 910 | 909 |
| 911 User* UserManager::CreateUser(const std::string& email) const { | 910 User* UserManager::CreateUser(const std::string& email) const { |
| 912 User* user = new User(email); | 911 User* user = new User(email); |
| 913 user->set_oauth_token_status(GetUserOAuthStatus(email)); | 912 user->set_oauth_token_status(GetUserOAuthStatus(email)); |
| 914 // Used to determine whether user's display name is unique. | 913 // Used to determine whether user's display name is unique. |
| 915 ++display_name_count_[user->GetDisplayName()]; | 914 ++display_name_count_[user->GetDisplayName()]; |
| 916 return user; | 915 return user; |
| 917 } | 916 } |
| 918 | 917 |
| 919 } // namespace chromeos | 918 } // namespace chromeos |
| OLD | NEW |