Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(546)

Side by Side Diff: chrome/browser/supervised_user/legacy/custodian_profile_downloader_service.cc

Issue 1487283005: Implement the new Sync Confirmation dialog on Linux and Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments and use Polymer where relevant. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698