Commit 5a9d71d5 authored by Finnur Thorarinsson's avatar Finnur Thorarinsson Committed by Commit Bot

Contacts Picker: Fix crash when tab goes away.

Bug: 1001452, 860467
Change-Id: I0ee2354eda509e800fd0c80a66408de4b01c2536
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1789151
Auto-Submit: Finnur Thorarinsson <finnur@chromium.org>
Reviewed-by: default avatarTheresa  <twellington@chromium.org>
Reviewed-by: default avatarTed Choc <tedchoc@chromium.org>
Commit-Queue: Finnur Thorarinsson <finnur@chromium.org>
Cr-Commit-Position: refs/heads/master@{#695015}
parent 2d10ff58
......@@ -84,6 +84,8 @@ public class ContactsDialogHost implements ContactsPickerListener {
@Override
public void onContactsPickerUserAction(@ContactsPickerAction int action, List<Contact> contacts,
int percentageShared, int propertiesRequested) {
if (mNativeContactsProviderAndroid == 0) return;
switch (action) {
case ContactsPickerAction.CANCEL:
ContactsDialogHostJni.get().endContactsList(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment