code: public static Intent addChromeCustomTabsExtras(Context context, Intent intent) {
          if (SDK_INT >= JELLY_BEAN_MR2 && ChromeCustomTabs.isAvailable(context)) {
              Bundle extras = new Bundle();
              extras.putBinder("android.support.customtabs.extra.SESSION", null);
              intent.putExtras(extras);
              intent.addFlags(Intent.FLAG_ACTIVITY_MULTIPLE_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
          }
  
          return intent;
      }
docs: Adds the required extras and flags to an {@link Intent} for using Chrome Custom Tabs. If
  Chrome Custom Tabs are not available or supported no change will be made to the {@link Intent}.
  
  @param context
  @param intent The {@link Intent} to add the extras and flags to for Chrome Custom Tabs.
  @return The {@link Intent} supplied with additional extras and flags if Chrome Custom Tabs
  are supported and available.