OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/managed_mode/custodian_profile_downloader_service.h" | 5 #include "chrome/browser/supervised_user/custodian_profile_downloader_service.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/common/pref_names.h" | 9 #include "chrome/common/pref_names.h" |
10 #include "google_apis/gaia/gaia_auth_util.h" | 10 #include "google_apis/gaia/gaia_auth_util.h" |
11 | 11 |
12 CustodianProfileDownloaderService::CustodianProfileDownloaderService( | 12 CustodianProfileDownloaderService::CustodianProfileDownloaderService( |
13 Profile* custodian_profile) | 13 Profile* custodian_profile) |
14 : custodian_profile_(custodian_profile) { | 14 : custodian_profile_(custodian_profile) { |
15 } | 15 } |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 last_downloaded_profile_email_ = in_progress_profile_email_; | 68 last_downloaded_profile_email_ = in_progress_profile_email_; |
69 } | 69 } |
70 | 70 |
71 void CustodianProfileDownloaderService::OnProfileDownloadFailure( | 71 void CustodianProfileDownloaderService::OnProfileDownloadFailure( |
72 ProfileDownloader* downloader, | 72 ProfileDownloader* downloader, |
73 ProfileDownloaderDelegate::FailureReason reason) { | 73 ProfileDownloaderDelegate::FailureReason reason) { |
74 // Ignore failures; proceed without the custodian's name. | 74 // Ignore failures; proceed without the custodian's name. |
75 download_callback_.Reset(); | 75 download_callback_.Reset(); |
76 profile_downloader_.reset(); | 76 profile_downloader_.reset(); |
77 } | 77 } |
OLD | NEW |