@Override
    public boolean isShowingTopControlsEnabled() {
      if (!super.isShowingTopControlsEnabled()) return false;

      String webappStartUrl = mActivity.getWebappInfo().uri().toString();
      return shouldShowTopControls(webappStartUrl, mTab.getUrl(), mTab.getSecurityLevel());
    }
    @Override
    public void activateContents() {
      String startUrl = mActivity.getWebappInfo().uri().toString();

      // Create an Intent that will be fired toward the WebappLauncherActivity, which in turn
      // will fire an Intent to launch the correct WebappActivity.  On L+ this could probably
      // be changed to call AppTask.moveToFront(), but for backwards compatibility we relaunch
      // it the hard way.
      Intent intent = new Intent();
      intent.setAction(WebappLauncherActivity.ACTION_START_WEBAPP);
      intent.setPackage(mActivity.getPackageName());
      mActivity.getWebappInfo().setWebappIntentExtras(intent);

      intent.putExtra(ShortcutHelper.EXTRA_MAC, ShortcutHelper.getEncodedMac(mActivity, startUrl));
      intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
      ContextUtils.getApplicationContext().startActivity(intent);
    }