Chromium Code Reviews| Index: chrome/browser/android/profiles/profile_downloader_android.cc |
| diff --git a/chrome/browser/android/profiles/profile_downloader_android.cc b/chrome/browser/android/profiles/profile_downloader_android.cc |
| index 635689d702cb825af1d8e467b79e72d26467cef2..b756026527777f1d918d0b6e51f4d85992eaee36 100644 |
| --- a/chrome/browser/android/profiles/profile_downloader_android.cc |
| +++ b/chrome/browser/android/profiles/profile_downloader_android.cc |
| @@ -193,6 +193,14 @@ void StartFetchingAccountInfoFor(JNIEnv* env, |
| AccountTrackerService* account_tracker_service = |
| AccountTrackerServiceFactory::GetForProfile(profile); |
| + AccountInfo account_info = |
| + account_tracker_service->FindAccountInfoByEmail(email); |
| + |
| + if (account_info.account_id.empty()) { |
| + LOG(ERROR) << "Could not get valid account information for " << email; |
|
newt (away)
2016/02/11 16:46:06
I believe we shouldn't log email addresses. I'd re
PEConn
2016/02/12 18:41:20
Done.
|
| + return; |
| + } |
| + |
| AccountInfoRetriever* retriever = new AccountInfoRetriever( |
| profile, |
| account_tracker_service->FindAccountInfoByEmail(email).account_id, email, |