/**
   * Display the thumbnail from a bitmap.
   *
   * @param thumbnail The bitmap to show as thumbnail.
   */
  public void displayThumbnail(Bitmap thumbnail) {
    if (thumbnail == null) {
      // Show a favicon based view instead.
      displayThumbnail(R.drawable.favicon);
      return;
    }
    mThumbnailSet = true;
    Favicons.cancelFaviconLoad(mLoadId);

    mThumbnailView.setScaleType(SCALE_TYPE_THUMBNAIL);
    mThumbnailView.setImageBitmap(thumbnail);
    mThumbnailView.setBackgroundDrawable(null);
  }
 public void setLoadId(int aLoadId) {
   Favicons.cancelFaviconLoad(mLoadId);
   mLoadId = aLoadId;
 }