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" | |
8 #include "chrome/browser/profiles/profile.h" | 7 #include "chrome/browser/profiles/profile.h" |
9 #include "chrome/browser/signin/signin_manager_factory.h" | 8 #include "chrome/browser/signin/signin_manager_factory.h" |
10 #include "chrome/common/pref_names.h" | 9 #include "chrome/common/pref_names.h" |
| 10 #include "components/prefs/pref_service.h" |
11 #include "components/signin/core/browser/signin_manager.h" | 11 #include "components/signin/core/browser/signin_manager.h" |
12 #include "google_apis/gaia/gaia_auth_util.h" | 12 #include "google_apis/gaia/gaia_auth_util.h" |
13 | 13 |
14 CustodianProfileDownloaderService::CustodianProfileDownloaderService( | 14 CustodianProfileDownloaderService::CustodianProfileDownloaderService( |
15 Profile* custodian_profile) | 15 Profile* custodian_profile) |
16 : custodian_profile_(custodian_profile) { | 16 : custodian_profile_(custodian_profile) { |
17 } | 17 } |
18 | 18 |
19 CustodianProfileDownloaderService::~CustodianProfileDownloaderService() {} | 19 CustodianProfileDownloaderService::~CustodianProfileDownloaderService() {} |
20 | 20 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 last_downloaded_profile_email_ = in_progress_profile_email_; | 74 last_downloaded_profile_email_ = in_progress_profile_email_; |
75 } | 75 } |
76 | 76 |
77 void CustodianProfileDownloaderService::OnProfileDownloadFailure( | 77 void CustodianProfileDownloaderService::OnProfileDownloadFailure( |
78 ProfileDownloader* downloader, | 78 ProfileDownloader* downloader, |
79 ProfileDownloaderDelegate::FailureReason reason) { | 79 ProfileDownloaderDelegate::FailureReason reason) { |
80 // Ignore failures; proceed without the custodian's name. | 80 // Ignore failures; proceed without the custodian's name. |
81 download_callback_.Reset(); | 81 download_callback_.Reset(); |
82 profile_downloader_.reset(); | 82 profile_downloader_.reset(); |
83 } | 83 } |
OLD | NEW |