<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2017 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->

<PreferenceScreen
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">

    <org.chromium.components.browser_ui.settings.SpinnerPreference
        android:key="time_period_spinner"
        android:persistent="false"
        android:title="@string/clear_browsing_data_tab_period_title"
        app:singleLine="true"
        app:backgroundStyle="none"/>

    <org.chromium.chrome.browser.browsing_data.ClearBrowsingDataCheckBoxPreference
        android:key="clear_history_checkbox"
        android:persistent="false"
        android:title="@string/clear_history_title"
        android:summary="@string/clear_browsing_history_summary" />

    <org.chromium.chrome.browser.browsing_data.ClearBrowsingDataCheckBoxPreference
        android:key="clear_cookies_checkbox"
        android:persistent="false"
        android:title="@string/clear_cookies_and_site_data_title"
        android:summary="@string/clear_cookies_and_site_data_summary_basic" />

    <org.chromium.chrome.browser.browsing_data.ClearBrowsingDataCheckBoxPreference
        android:key="clear_cache_checkbox"
        android:persistent="false"
        android:title="@string/clear_cache_title" />

    <org.chromium.chrome.browser.browsing_data.ClearBrowsingDataCheckBoxPreference
        android:key="clear_tabs_checkbox"
        android:persistent="false"
        android:title="@string/clear_tabs_title" />

    <org.chromium.chrome.browser.browsing_data.ClearBrowsingDataCheckBoxPreference
        android:key="clear_passwords_checkbox"
        android:persistent="false"
        android:title="@string/clear_passwords_title" />

    <org.chromium.chrome.browser.browsing_data.ClearBrowsingDataCheckBoxPreference
        android:key="clear_form_data_checkbox"
        android:persistent="false"
        android:title="@string/clear_form_data_title" />

    <org.chromium.chrome.browser.browsing_data.ClearBrowsingDataCheckBoxPreference
        android:key="clear_site_settings_checkbox"
        android:persistent="false"
        android:title="@string/prefs_site_settings" />

    <PreferenceCategory
        android:layout="@layout/preference_category_no_title_or_padding" />

    <org.chromium.chrome.browser.browsing_data.ClearBrowsingDataExpandablePreferenceCategory
        android:key="manage_other_google_data_expandable"
        android:title="@string/clear_browsing_data_manage_other_google_data_expandable_title" >

        <org.chromium.components.browser_ui.settings.ChromeBasePreference
            android:key="password_manager_link_out"
            android:icon="@drawable/ic_password_manager_key"
            android:title="@string/password_manager_link_out_title"
            android:summary="@string/password_manager_link_out_description"
            android:widgetLayout="@layout/preference_widget_open_in_new" />

        <org.chromium.components.browser_ui.settings.ChromeBasePreference
            android:key="search_history_link_out_other_dse"
            android:icon="@drawable/ic_search_24dp"
            android:title="@string/search_history_link_out_title"
            android:selectable="false" />

        <org.chromium.components.browser_ui.settings.ChromeBasePreference
            android:key="search_history_link_out"
            android:icon="@drawable/ic_search_24dp"
            android:title="@string/search_history_link_out_title"
            android:summary="@string/my_activity_link_out_description"
            android:widgetLayout="@layout/preference_widget_open_in_new" />

        <org.chromium.components.browser_ui.settings.ChromeBasePreference
            android:key="my_activity_link_out"
            android:icon="@drawable/ic_google_services_24dp"
            android:title="@string/my_activity_link_out_title"
            android:summary="@string/my_activity_link_out_description"
            android:widgetLayout="@layout/preference_widget_open_in_new" />
    </org.chromium.chrome.browser.browsing_data.ClearBrowsingDataExpandablePreferenceCategory>

    <org.chromium.components.browser_ui.settings.ClickableSpansTextMessagePreference
        android:key="sign_out_of_chrome_text" />
</PreferenceScreen>
