@Override
 public void onClick(DialogInterface dialog, int whichButton) {
   if (whichButton == AlertDialog.BUTTON_POSITIVE) {
     dismissProgressDialog();
     onOptionSelected(mSelectedOptions);
   }
 }
 @Override
 public void onDestroy() {
   super.onDestroy();
   if (mClearBrowsingDataDialogFragment != null) {
     // In case the progress dialog is still showing and waiting for a callback, dismiss it.
     // See bug http://b/13396757.
     mClearBrowsingDataDialogFragment.dismissProgressDialog();
   }
   mClearBrowsingDataDialogFragment = null;
 }
 // Called when "clear browsing data" completes.
 // Implements the ChromePreferences.OnClearBrowsingDataListener interface.
 @Override
 public void onBrowsingDataCleared() {
   dismissProgressDialog();
 }