Commit 680cc944 authored by Rohit Agarwal's avatar Rohit Agarwal Committed by Commit Bot

Resolve CustomTabIncognitoManager only for incognito case.

This CL adds a check to resolve CustomTabIncognitoManager's dagger
dependency only when the CustomTabActivity is incognito.

Bug: 1127801
Change-Id: Idff4539cface4f76924310eb09d052768b15e610
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2408314Reviewed-by: default avatarPeter Conn <peconn@chromium.org>
Commit-Queue: Rohit Agarwal <roagarwal@chromium.org>
Cr-Commit-Position: refs/heads/master@{#806589}
parent 66c23136
......@@ -194,15 +194,21 @@ public abstract class BaseCustomTabActivity extends ChromeActivity<BaseCustomTab
handleFinishAndClose();
});
component.resolveSessionHandler();
component.resolveCustomTabIncognitoManager();
BrowserServicesIntentDataProvider intentDataProvider = getIntentDataProvider();
if (intentDataProvider.isIncognito()) {
component.resolveCustomTabIncognitoManager();
}
if (intentDataProvider.isWebappOrWebApkActivity()) {
mWebappActivityCoordinator = component.resolveWebappActivityCoordinator();
}
if (intentDataProvider.isWebApkActivity()) {
component.resolveWebApkActivityCoordinator();
}
if (mIntentDataProvider.isTrustedWebActivity()) {
mTwaCoordinator = component.resolveTrustedWebActivityCoordinator();
}
......
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