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

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

Issue 1274953006: Check first run finished before custom tabs feature is used (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits Created 5 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
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/document/ChromeLauncherActivity.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1a64f3a5289a3b8529c43c9a4b3662cb650ba650..fe9ba418dd98efd1345f88328f6fd80949e0b7e0 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
@@ -8,6 +8,7 @@ import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
+import org.chromium.chrome.browser.firstrun.FirstRunFlowSequencer;
import org.chromium.chrome.browser.preferences.ChromePreferenceManager;
/**
@@ -21,6 +22,9 @@ public class CustomTabsConnectionService extends Service {
@Override
public IBinder onBind(Intent intent) {
+ boolean firstRunNecessary = FirstRunFlowSequencer
+ .checkIfFirstRunIsNecessary(getApplicationContext(), false) != null;
+ if (firstRunNecessary) return null;
if (!ChromePreferenceManager.getInstance(this).getCustomTabsEnabled()) return null;
return (IBinder) CustomTabsConnection.getInstance(getApplication());
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/document/ChromeLauncherActivity.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698