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

Unified Diff: chrome/browser/supervised_user/legacy/custodian_profile_downloader_service.cc

Issue 1091363002: Change ProfileDownloader to use AccountTrackerService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up unit test. Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/supervised_user/legacy/custodian_profile_downloader_service.cc
diff --git a/chrome/browser/supervised_user/legacy/custodian_profile_downloader_service.cc b/chrome/browser/supervised_user/legacy/custodian_profile_downloader_service.cc
index 2c338b96d66d3daefbf1991cb5a2dd30c67ac12a..9d81ee9cd30964a8e98b64835dec2271fb8bf43d 100644
--- a/chrome/browser/supervised_user/legacy/custodian_profile_downloader_service.cc
+++ b/chrome/browser/supervised_user/legacy/custodian_profile_downloader_service.cc
@@ -6,6 +6,7 @@
#include "base/prefs/pref_service.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/signin/chrome_signin_client_factory.h"
#include "chrome/browser/signin/signin_manager_factory.h"
#include "chrome/common/pref_names.h"
#include "components/signin/core/browser/signin_manager.h"
@@ -42,7 +43,9 @@ void CustodianProfileDownloaderService::DownloadProfile(
// queueing them up, and more likely that the one that hasn't ended yet is
// failing somehow than that the new one won't succeed.
in_progress_profile_email_ = current_email;
- profile_downloader_.reset(new ProfileDownloader(this));
+ profile_downloader_.reset(
Marc Treib 2015/05/06 21:30:05 nit: Is this a valid way to break the line? I'd wr
anthonyvd 2015/05/14 15:39:23 Done.
+ new ProfileDownloader(this,
+ ChromeSigninClientFactory::GetForProfile(custodian_profile_)));
profile_downloader_->Start();
}
« no previous file with comments | « chrome/browser/signin/signin_manager_unittest.cc ('k') | components/signin/core/browser/account_tracker_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698