Index: chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTestBase.java |
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTestBase.java b/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTestBase.java |
index 70dd5c98974f968239ffa4800f82e17dfdd1d262..ce034eb5f099d51622cdaeb55152c1064d4b53ac 100644 |
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTestBase.java |
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabActivityTestBase.java |
@@ -9,10 +9,12 @@ import android.app.Instrumentation; |
import android.content.ComponentName; |
import android.content.Intent; |
import android.net.Uri; |
+import android.support.customtabs.CustomTabsIntent; |
import org.chromium.chrome.browser.DeferredStartupHandler; |
import org.chromium.chrome.browser.Tab; |
import org.chromium.chrome.browser.document.ChromeLauncherActivity; |
+import org.chromium.chrome.browser.util.IntentUtils; |
import org.chromium.chrome.test.ChromeActivityTestCaseBase; |
import org.chromium.content.browser.test.util.Criteria; |
import org.chromium.content.browser.test.util.CriteriaHelper; |
@@ -80,7 +82,7 @@ public abstract class CustomTabActivityTestBase extends |
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); |
intent.setComponent(new ComponentName(getInstrumentation().getTargetContext(), |
ChromeLauncherActivity.class)); |
- intent.putExtra(CustomTabIntentDataProvider.EXTRA_CUSTOM_TABS_SESSION_ID, -1); |
+ IntentUtils.safePutBinderExtra(intent, CustomTabsIntent.EXTRA_SESSION, null); |
return intent; |
} |
} |