public void bindCustomTabsService(Activity activity) {
        if (mClient != null) return;

        String packageName = CustomTabsHelper.getPackageNameToUse(activity);
        if (packageName == null) return;

        mConnection = new ServiceConnection(this);
        CustomTabsClient.bindCustomTabsService(activity, packageName, mConnection);
    }
Binds the Activity to the Custom Tabs Service.
@param activity the activity to be binded to the service.
demos/src/main/java/org/chromium/customtabsdemos/CustomTabActivityHelper.java