| Index: components/signin/core/browser/child_account_info_fetcher_android.cc
|
| diff --git a/components/signin/core/browser/child_account_info_fetcher_android.cc b/components/signin/core/browser/child_account_info_fetcher_android.cc
|
| index 0c7c59a0a3275c89242067904fa657959dadb44d..132158856ed0217b50e24c221dff74176b426fb6 100644
|
| --- a/components/signin/core/browser/child_account_info_fetcher_android.cc
|
| +++ b/components/signin/core/browser/child_account_info_fetcher_android.cc
|
| @@ -17,6 +17,9 @@ void ChildAccountInfoFetcherAndroid::StartFetchingChildAccountInfo(
|
| JNIEnv* env = base::android::AttachCurrentThread();
|
| std::string account_name =
|
| service->account_tracker_service()->GetAccountInfo(account_id).email;
|
| + // The AccountTrackerService may not be populated correctly in tests.
|
| + if (account_name.empty())
|
| + return;
|
| Java_ChildAccountInfoFetcher_fetch(
|
| env, reinterpret_cast<jlong>(service),
|
| base::android::ConvertUTF8ToJavaString(env, account_id).obj(),
|
|
|