<link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="/a11y_page/a11y_page.html">
<link rel="import" href="/downloads_page/downloads_page.html">
<link rel="import" href="/languages_page/languages_page.html">
<link rel="import" href="/passwords_and_forms_page/passwords_and_forms_page.html">
<link rel="import" href="/printing_page/printing_page.html">
<link rel="import" href="/privacy_page/privacy_page.html">
<link rel="import" href="/reset_page/reset_page.html">
<link rel="import" href="/settings_page/main_page_behavior.html">
<link rel="import" href="/settings_page/settings_page_visibility.html">
<link rel="import" href="/settings_page/settings_section.html">
<link rel="import" href="/settings_page_css.html">

<if expr="chromeos">
<link rel="import" href="/bluetooth_page/bluetooth_page.html">
<link rel="import" href="/date_time_page/date_time_page.html">
</if>

<if expr="not chromeos">
<link rel="import" href="/system_page/system_page.html">
</if>

<dom-module id="settings-advanced-page">
  <template>
    <style include="settings-page-styles"></style>
    <div>
<if expr="chromeos">
      <template is="dom-if" if="[[showPage(pageVisibility.dateTime)]]" restamp>
        <settings-section page-title="$i18n{dateTimePageTitle}"
            section="dateTime">
          <settings-date-time-page prefs="{{prefs}}"
              page-visibility="[[pageVisibility.dateTime]]">
          </settings-date-time-page>
        </settings-section>
      </template>
</if>
      <template is="dom-if" if="[[showPage(pageVisibility.privacy)]]" restamp>
        <settings-section page-title="$i18n{privacyPageTitle}"
            section="privacy">
          <settings-privacy-page prefs="{{prefs}}"
              page-visibility="[[pageVisibility.privacy]]">
          </settings-privacy-page>
        </settings-section>
      </template>
<if expr="chromeos">
      <template is="dom-if" if="[[showPage(pageVisibility.bluetooth)]]" restamp>
        <settings-section page-title="$i18n{bluetoothPageTitle}"
            section="bluetooth">
          <settings-bluetooth-page prefs="{{prefs}}"></settings-bluetooth-page>
        </settings-section>
      </template>
</if>
      <template is="dom-if" if="[[showPage(pageVisibility.passwordsAndForms)]]"
          restamp>
        <settings-section
            page-title="$i18n{passwordsAndAutofillPageTitle}"
            section="passwordsAndForms">
          <settings-passwords-and-forms-page prefs="{{prefs}}">
          </settings-passwords-and-forms-page>
        </settings-section>
      </template>
      <template is="dom-if" if="[[showPage(pageVisibility.languages)]]" restamp>
        <settings-section page-title="$i18n{languagesPageTitle}"
            section="languages">
          <settings-languages-page prefs="{{prefs}}"></settings-languages-page>
        </settings-section>
      </template>
      <template is="dom-if" if="[[showPage(pageVisibility.downloads)]]" restamp>
        <settings-section page-title="$i18n{downloadsPageTitle}"
            section="downloads">
          <settings-downloads-page prefs="{{prefs}}"
              page-visibility="[[pageVisibility.downloads]]">
          </settings-downloads-page>
        </settings-section>
      </template>
      <template is="dom-if" if="[[showPage(pageVisibility.printing)]]" restamp>
        <settings-section page-title="$i18n{printingPageTitle}"
            section="printing">
          <settings-printing-page prefs="{{prefs}}"></settings-printing-page>
        </settings-section>
      </template>
      <template is="dom-if" if="[[showPage(pageVisibility.a11y)]]" restamp>
        <settings-section page-title="$i18n{a11yPageTitle}" section="a11y">
          <settings-a11y-page prefs="{{prefs}}"
              current-route="{{currentRoute}}">
          </settings-a11y-page>
        </settings-section>
      </template>
<if expr="not chromeos">
      <template is="dom-if" if="[[showPage(pageVisibility.system)]]" restamp>
        <settings-section page-title="$i18n{systemPageTitle}" section="system">
          <settings-system-page prefs="{{prefs}}"></settings-system-page>
        </settings-section>
      </template>
</if>
      <template is="dom-if" if="[[showPage(pageVisibility.reset)]]" restamp>
        <settings-section page-title="$i18n{resetPageTitle}" section="reset">
          <settings-reset-page></settings-reset-page>
        </settings-section>
      </template>
    </div>
  </template>
  <script src="/advanced_page/advanced_page.js"></script>
</dom-module>
