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

Unified Diff: chrome/browser/android/profiles/profile_downloader_android.cc

Issue 1574273002: Unify and Improve the Sign-In and Sync Confirmation Screens on Clank. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « chrome/android/java/strings/android_chrome_strings.grd ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..eba72f11037cbcaf8103f86fbafce936145201f9 100644
--- a/chrome/browser/android/profiles/profile_downloader_android.cc
+++ b/chrome/browser/android/profiles/profile_downloader_android.cc
@@ -193,6 +193,15 @@ 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) << "Attempted to get AccountInfo for account not in the "
+ << "AccountTrackerService";
+ return;
+ }
+
AccountInfoRetriever* retriever = new AccountInfoRetriever(
profile,
account_tracker_service->FindAccountInfoByEmail(email).account_id, email,
« no previous file with comments | « chrome/android/java/strings/android_chrome_strings.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698