/**
  * Opens the single origin settings page for the given URL.
  *
  * @param url The URL to show the single origin settings for. This is a complete url including
  *     scheme, domain, port, path, etc.
  */
 protected void showSingleOriginSettings(String url) {
   Bundle fragmentArgs = SingleWebsitePreferences.createFragmentArgsForSite(url);
   Intent intent =
       PreferencesLauncher.createIntentForSettingsPage(
           this, SingleWebsitePreferences.class.getName());
   intent.putExtra(Preferences.EXTRA_SHOW_FRAGMENT_ARGUMENTS, fragmentArgs);
   startActivity(intent);
 }
 /**
  * Opens the UI to clear browsing data.
  *
  * @param tab The tab that triggered the request.
  */
 @CalledByNative
 protected void openClearBrowsingData(Tab tab) {
   Activity activity = tab.getWindowAndroid().getActivity().get();
   if (activity == null) {
     Log.e(TAG, "Attempting to open clear browsing data for a tab without a valid activity");
     return;
   }
   Intent intent =
       PreferencesLauncher.createIntentForSettingsPage(
           activity, PrivacyPreferences.class.getName());
   Bundle arguments = new Bundle();
   arguments.putBoolean(PrivacyPreferences.SHOW_CLEAR_BROWSING_DATA_EXTRA, true);
   intent.putExtra(Preferences.EXTRA_SHOW_FRAGMENT_ARGUMENTS, arguments);
   activity.startActivity(intent);
 }