Commit bc2176b2 authored by Side Yilmaz's avatar Side Yilmaz Committed by Commit Bot

Use non-primary OTR profile for Incognito CCT TabModel.

|IncognitoTabModelImplCreator#getOTRProfile| function always returns
primary OTR profile. This CL uses OTR profile that is obtained from
mWindowAndroidSupplier for Incognito CCT.

Bug: 1099642
Change-Id: I63ce65ddd6727470921864cb4abc325e8437f04e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2440626Reviewed-by: default avatarBoris Sazonov <bsazonov@chromium.org>
Reviewed-by: default avatarRohit Agarwal <roagarwal@chromium.org>
Commit-Queue: Side YILMAZ <sideyilmaz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#813204}
parent 94c23ad3
...@@ -82,6 +82,8 @@ class IncognitoTabModelImplCreator implements IncognitoTabModelDelegate { ...@@ -82,6 +82,8 @@ class IncognitoTabModelImplCreator implements IncognitoTabModelDelegate {
if (otrProfile == null) { if (otrProfile == null) {
return Profile.getLastUsedRegularProfile().getPrimaryOTRProfile(); return Profile.getLastUsedRegularProfile().getPrimaryOTRProfile();
} }
return otrProfile;
} }
return Profile.getLastUsedRegularProfile().getPrimaryOTRProfile(); return Profile.getLastUsedRegularProfile().getPrimaryOTRProfile();
} }
......
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