Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(437)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnectionService.java

Issue 2237293003: [FRE] Change the First Run Experience launching behavior (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnectionService.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnectionService.java b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnectionService.java
index d49818ccf1cd4856ae98c9fa2bf0fa005cfe8be8..538de539f1a9a95fb486fc9df211a16df3e557d5 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnectionService.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnectionService.java
@@ -11,6 +11,8 @@ import android.os.IBinder;
import android.support.customtabs.CustomTabsService;
import android.support.customtabs.CustomTabsSessionToken;
+import org.chromium.chrome.browser.IntentHandler;
+import org.chromium.chrome.browser.IntentHandler.ExternalAppId;
import org.chromium.chrome.browser.firstrun.FirstRunFlowSequencer;
import java.util.List;
@@ -74,8 +76,13 @@ public class CustomTabsConnectionService extends CustomTabsService {
private boolean isFirstRunDone() {
if (mBindIntent == null) return true;
- boolean firstRunNecessary = FirstRunFlowSequencer
- .checkIfFirstRunIsNecessary(getApplicationContext(), mBindIntent) != null;
+ boolean showLightweightFre =
+ IntentHandler.determineExternalIntentSource(this.getPackageName(), mBindIntent)
+ != ExternalAppId.GSA;
+ boolean firstRunNecessary =
+ FirstRunFlowSequencer.checkIfFirstRunIsNecessary(
+ getApplicationContext(), mBindIntent, showLightweightFre)
+ != null;
if (!firstRunNecessary) {
mBindIntent = null;
return true;

Powered by Google App Engine
This is Rietveld 408576698