| 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 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 831 } | 831 } |
| 832 | 832 |
| 833 int UserManager::GetDesiredImageSideLength() const { | 833 int UserManager::GetDesiredImageSideLength() const { |
| 834 return login::kUserImageSize; | 834 return login::kUserImageSize; |
| 835 } | 835 } |
| 836 | 836 |
| 837 Profile* UserManager::GetBrowserProfile() { | 837 Profile* UserManager::GetBrowserProfile() { |
| 838 return ProfileManager::GetDefaultProfile(); | 838 return ProfileManager::GetDefaultProfile(); |
| 839 } | 839 } |
| 840 | 840 |
| 841 bool UserManager::ShouldUseOAuthRefreshToken() const { | |
| 842 return false; | |
| 843 } | |
| 844 | |
| 845 std::string UserManager::GetCachedPictureURL() const { | 841 std::string UserManager::GetCachedPictureURL() const { |
| 846 // Currently the profile picture URL is not cached on ChromeOS. | 842 // Currently the profile picture URL is not cached on ChromeOS. |
| 847 return std::string(); | 843 return std::string(); |
| 848 } | 844 } |
| 849 | 845 |
| 850 void UserManager::OnDownloadComplete(ProfileDownloader* downloader, | 846 void UserManager::OnDownloadComplete(ProfileDownloader* downloader, |
| 851 bool success) { | 847 bool success) { |
| 852 ProfileDownloadResult result; | 848 ProfileDownloadResult result; |
| 853 std::string time_histogram_name; | 849 std::string time_histogram_name; |
| 854 if (!success) { | 850 if (!success) { |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 909 | 905 |
| 910 User* UserManager::CreateUser(const std::string& email) const { | 906 User* UserManager::CreateUser(const std::string& email) const { |
| 911 User* user = new User(email); | 907 User* user = new User(email); |
| 912 user->set_oauth_token_status(GetUserOAuthStatus(email)); | 908 user->set_oauth_token_status(GetUserOAuthStatus(email)); |
| 913 // Used to determine whether user's display name is unique. | 909 // Used to determine whether user's display name is unique. |
| 914 ++display_name_count_[user->GetDisplayName()]; | 910 ++display_name_count_[user->GetDisplayName()]; |
| 915 return user; | 911 return user; |
| 916 } | 912 } |
| 917 | 913 |
| 918 } // namespace chromeos | 914 } // namespace chromeos |
| OLD | NEW |