Commit 351909cd authored by Side Yilmaz's avatar Side Yilmaz Committed by Commit Bot

Replace deprecated getLastUsedProfile function in

PassphraseDialogFragment.

|Profile#getLastUsedProfile| is deprecated and replaced with
|Profile#getLastUsedRegularProfile|. This CL updates
PassphraseDialogFragment class.

Note: This change is only code clean-up, does not change any behavior.

Bug: 1041781
Change-Id: I3153d152820781be684fc0fd0a7ff00d45c6981b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2082912Reviewed-by: default avatarMarc Treib <treib@chromium.org>
Reviewed-by: default avatarRamin Halavati <rhalavati@chromium.org>
Commit-Queue: Side YILMAZ <sideyilmaz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#746353}
parent b85847a2
......@@ -182,8 +182,12 @@ public class PassphraseDialogFragment extends DialogFragment implements OnClickL
new SpanInfo("<learnmore>", "</learnmore>", new ClickableSpan() {
@Override
public void onClick(View view) {
HelpAndFeedback.getInstance().show(
getActivity(), helpContext, Profile.getLastUsedProfile(), null);
// TODO(https://crbug.com/1048632): It works correctly now, but unsafe
// if sync runs in incognito mode ever. Use the current profile (i.e.,
// regular profile or incognito profile) instead of always using regular
// profile.
HelpAndFeedback.getInstance().show(getActivity(), helpContext,
Profile.getLastUsedRegularProfile(), null);
}
}));
}
......
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