<link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classes/iron-flex-layout.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-material/paper-material.html">
<link rel="import" href="chrome://resources/cr_elements/v1_0/cr_button/cr_button.html">
<link rel="import" href="chrome://md-settings/checkbox/checkbox.html">

<dom-module id="cr-settings-privacy-page">
  <link rel="import" type="css"
      href="chrome://md-settings/settings_page/settings_page.css">
  <link rel="import" type="css" href="privacy_page.css">
  <template>
    <paper-material>
      <p class="privacy-explanation"
          i18n-values=".innerHTML:improveBrowsingExperience">
      </p>
      <cr-settings-checkbox
          pref="{{prefs.alternate_error_pages.enabled}}"
          i18n-values="label:linkDoctorPref">
      </cr-settings-checkbox>
      <cr-settings-checkbox
          pref="{{prefs.search.suggest_enabled}}"
          i18n-values="label:searchSuggestPref">
      </cr-settings-checkbox>
      <cr-settings-checkbox
          pref="{{prefs.net.network_prediction_options}}"
          i18n-values="label:networkPredictionEnabled">
      </cr-settings-checkbox>
      <cr-settings-checkbox
          pref="{{prefs.safebrowsing.extended_reporting_enabled}}"
          i18n-values="label:safeBrowsingEnableExtendedReporting">
      </cr-settings-checkbox>
      <cr-settings-checkbox pref="{{prefs.safebrowsing.enabled}}"
          i18n-values="label:safeBrowsingEnableProtection">
      </cr-settings-checkbox>
<if expr="_google_chrome">
      <cr-settings-checkbox
          pref="{{prefs.spellcheck.use_spelling_service}}"
          i18n-values="label:spellingPref">
      </cr-settings-checkbox>
<if expr="chromeos">
      <cr-settings-checkbox
          pref="{{prefs.cros.metrics.reportingEnabled}}"
          i18n-values="label:enableLogging">
      </cr-settings-checkbox>
</if>
      <!-- TODO(jlklein): Add non-chromeos metrics box. -->
</if>
      <cr-settings-checkbox pref="{{prefs.enable_do_not_track}}"
          i18n-values="label:doNotTrack">
      </cr-settings-checkbox>
<if expr="chromeos">
      <cr-settings-checkbox
          pref="{{prefs.cros.device.attestation_for_content_protection_enabled}}"
          i18n-values="label:enableContentProtectionAttestation">
      </cr-settings-checkbox>
      <cr-settings-checkbox
          pref="{{prefs.settings.internet.wake_on_wifi_ssid}}"
          i18n-values="label:wakeOnWifi">
      </cr-settings-checkbox>
</if>
      <div class="privacy-buttons layout horizontal end-justified">
        <cr-button i18n-content="siteSettingsLabel"></cr-button>
        <cr-button raised i18n-content="clearBrowsingDataLabel">
        </cr-button>
      </div>
    </paper-material>
  </template>
  <script src="privacy_page.js"></script>
</dom-module>
