Commit 58bfb746 authored by Side Yilmaz's avatar Side Yilmaz Committed by Commit Bot

Replace deprecated getLastUsedProfile function in EditorDialog.

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

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

Bug: 1041781
Change-Id: I322a8a21f92a911d85d8f4378c16a0b67c5f0ac2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2064936Reviewed-by: default avatarRamin Halavati <rhalavati@chromium.org>
Reviewed-by: default avatarSahel Sharify <sahel@chromium.org>
Commit-Queue: Side YILMAZ <sideyilmaz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#743479}
parent e496eb88
......@@ -174,9 +174,12 @@ public class EditorDialog
/** Launches the Autofill help page on top of the current Context. */
public static void launchAutofillHelpPage(Context context) {
// TODO(https://crbug.com/1041781): Use the current profile (i.e., regular profile or
// incognito profile) instead of always using regular profile. It is wrong and need to be
// fixed not to cause data leakage from incognito to regular profile.
HelpAndFeedback.getInstance().show((Activity) context,
context.getString(R.string.help_context_autofill), Profile.getLastUsedProfile(),
null);
context.getString(R.string.help_context_autofill),
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