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 "chrome/browser/supervised_user/legacy/custodian_profile_downloader_ser
vice.h" | 5 #include "chrome/browser/supervised_user/legacy/custodian_profile_downloader_ser
vice.h" |
6 | 6 |
7 #include "base/prefs/pref_service.h" | 7 #include "base/prefs/pref_service.h" |
8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
9 #include "chrome/browser/signin/signin_manager_factory.h" | 9 #include "chrome/browser/signin/signin_manager_factory.h" |
10 #include "chrome/common/pref_names.h" | 10 #include "chrome/common/pref_names.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 // failing somehow than that the new one won't succeed. | 43 // failing somehow than that the new one won't succeed. |
44 in_progress_profile_email_ = current_email; | 44 in_progress_profile_email_ = current_email; |
45 profile_downloader_.reset(new ProfileDownloader(this)); | 45 profile_downloader_.reset(new ProfileDownloader(this)); |
46 profile_downloader_->Start(); | 46 profile_downloader_->Start(); |
47 } | 47 } |
48 | 48 |
49 bool CustodianProfileDownloaderService::NeedsProfilePicture() const { | 49 bool CustodianProfileDownloaderService::NeedsProfilePicture() const { |
50 return false; | 50 return false; |
51 } | 51 } |
52 | 52 |
53 int CustodianProfileDownloaderService::GetDesiredImageSideLength() const { | 53 unsigned int CustodianProfileDownloaderService::GetDesiredImageSideLength() |
| 54 const { |
54 return 0; | 55 return 0; |
55 } | 56 } |
56 | 57 |
57 std::string CustodianProfileDownloaderService::GetCachedPictureURL() const { | 58 std::string CustodianProfileDownloaderService::GetCachedPictureURL() const { |
58 return std::string(); | 59 return std::string(); |
59 } | 60 } |
60 | 61 |
61 Profile* CustodianProfileDownloaderService::GetBrowserProfile() { | 62 Profile* CustodianProfileDownloaderService::GetBrowserProfile() { |
62 DCHECK(custodian_profile_); | 63 DCHECK(custodian_profile_); |
63 return custodian_profile_; | 64 return custodian_profile_; |
(...skipping 10 matching lines...) Expand all Loading... |
74 last_downloaded_profile_email_ = in_progress_profile_email_; | 75 last_downloaded_profile_email_ = in_progress_profile_email_; |
75 } | 76 } |
76 | 77 |
77 void CustodianProfileDownloaderService::OnProfileDownloadFailure( | 78 void CustodianProfileDownloaderService::OnProfileDownloadFailure( |
78 ProfileDownloader* downloader, | 79 ProfileDownloader* downloader, |
79 ProfileDownloaderDelegate::FailureReason reason) { | 80 ProfileDownloaderDelegate::FailureReason reason) { |
80 // Ignore failures; proceed without the custodian's name. | 81 // Ignore failures; proceed without the custodian's name. |
81 download_callback_.Reset(); | 82 download_callback_.Reset(); |
82 profile_downloader_.reset(); | 83 profile_downloader_.reset(); |
83 } | 84 } |
OLD | NEW |