Commit 8a1bc518 authored by Side Yilmaz's avatar Side Yilmaz Committed by Commit Bot

Update IncognitoNewTabPageView to use incognito profile when called

incognito.

|Profile#getLastUsedProfile| is deprecated and replaced with
|Profile#getLastUsedRegularProfile|. This CL changes behavior to use
always off-the-record profile for HelpAndFeedback activity, because
it is "incognito learn more" button and it is always called in
incognito mode.

Bug: 1041781
Change-Id: I4438919d6afcd0efbec1dc5198fb94729c981707
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2060073Reviewed-by: default avatarTed Choc <tedchoc@chromium.org>
Commit-Queue: Side YILMAZ <sideyilmaz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#742537}
parent f3767c02
......@@ -46,7 +46,7 @@ public class IncognitoNewTabPage
private void showIncognitoLearnMore() {
HelpAndFeedback.getInstance().show(mActivity,
mActivity.getString(R.string.help_context_incognito_learn_more),
Profile.getLastUsedProfile(), null);
Profile.getLastUsedRegularProfile().getOffTheRecordProfile(), 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