<commit_before><div id="settings" class="page" hidden>
  <header>
    <h1 i18n-content="settingsTitle"></h1>
    <span id="browser-options-search-field-container"
        class="search-field-container">
      <input id="search-field" type="search"
          i18n-values="placeholder:searchPlaceholder;
                       aria-label:searchPlaceholder" incremental>
    </span>
  </header>
<if expr="not pp_ifdef('chromeos')">
  <section id="sync-section">
    <h3 i18n-content="sectionTitleSync"></h3>
    <div id="sync-overview" class="settings-row" hidden>
      <p i18n-content="syncOverview"></p>
      <a i18n-values="href:syncLearnMoreURL" i18n-content="learnMore"
          target="_blank">
      </a>
    </div>
    <div id="sync-status" class="settings-row" hidden>
      <span id="sync-status-text"></span>
      <button id="sync-action-link" class="link-button"></button>
    </div>
    <div id="sync-buttons" class="settings-row">
      <button id="start-stop-sync" hidden></button>
      <button id="customize-sync" i18n-content="customizeSync" hidden>
      </button>
      <div id="enable-auto-login-checkbox" class="checkbox" hidden>
        <label>
          <input id="enable-auto-login" pref="autologin.enabled"
              metric="Options_Autologin" type="checkbox">
          <span i18n-content="autologinEnabled"></span>
        </label>
      </div>
    </div>
  </section>
</if>
<if expr="pp_ifdef('chromeos')">
  <section>
    <h3 i18n-content="sectionTitleInternet"></h3>
    <div id="network-settings">
      <list id="network-list"></list>
      <div id="shared-proxies" class="checkbox">
        <label>
          <input id="use-shared-proxies" type="checkbox"
              pref="settings.use_shared_proxies">
          <span i18n-content="useSharedProxies"></span>
        </label>
      </div>
      <div id="network-locked-message" hidden>
        <span i18n-content="accessLockedMsg"></span>
      </div>
      <div id="network-menus"></div>
    </div>
  </section>
</if>
<if expr="not pp_ifdef('chromeos')">
  <!-- This section is duplicated below for ChromeOS. Both sections must stay
       in sync. -->
  <section id="startup-section">
    <h3 i18n-content="sectionTitleStartup"></h3>
    <div>
      <div class="radio">
        <label>
          <input id="startup-newtab" type="radio" name="startup" value="5"
              pref="session.restore_on_startup"
              metric="Options_Startup_NewTab">
          <span i18n-content="startupShowNewTab"></span>
        </label>
      </div>
      <div class="radio">
        <label>
          <input id="startup-restore-session" type="radio" name="startup"
              value="1" pref="session.restore_on_startup"
              metric="Options_Startup_LastSession">
          <span id="old-startup-last-text"
              i18n-content="startupShowLastSession">
          </span>
          <span id="new-startup-last-text"
              i18n-content="startupRestoreLastSession" hidden>
          </span>
        </label>
      </div>
      <div class="radio">
        <label>
          <input id="startup-show-pages" type="radio" name="startup"
              pref="session.restore_on_startup"
              value="4" metric="Options_Startup_Custom">
          <span>
            <span i18n-content="startupShowPages"></span>
            <button id="startup-set-pages" class="link-button"
                i18n-content="startupSetPages">
            </button>
          </span>
        </label>
      </div>
    </div>
  </section>
</if>
  <section>
    <h3 i18n-content="sectionTitleAppearance"></h3>
    <div>
<if expr="pp_ifdef('chromeos') and pp_ifdef('use_ash')">
      <button id="set-wallpaper" i18n-content="setWallpaper"></button>
</if>
<if expr="not pp_ifdef('toolkit_views') and is_posix and not is_macosx">
      <button id="themes-gallery" i18n-content="themesGallery"></button>
      <button id="themes-GTK-button"
          i18n-content="themesGTKButton"></button>
      <button id="themes-reset"
          i18n-content="themesSetClassic"></button>
</if>
<if expr="pp_ifdef('toolkit_views') or is_win or is_macosx">
      <button id="themes-gallery" i18n-content="themesGallery"></button>
      <button id="themes-reset" i18n-content="themesReset"></button>
</if>
    </div>
    <div class="checkbox" guest-visibility="disabled"><label>
      <input id="show-home-button" type="checkbox"
          pref="browser.show_home_button" metric="Options_Homepage_HomeButton">
      <span i18n-content="homePageShowHomeButton"></span>
    </label></div>
    <div id="change-home-page-section" hidden>
      <div id="change-home-page-section-container" guest-visibility="disabled">
        <span id="home-page-ntp" class="home-page-label"
            i18n-content="homePageNtp"></span>
        <span id="home-page-url" class="home-page-label"></span>
        <button id="change-home-page" class="link-button"
            i18n-content="changeHomePage"></button>
      </div>
    </div>
    <div class="checkbox" guest-visibility="disabled"><label>
        <input type="checkbox" pref="bookmark_bar.show_on_all_tabs"
            metric="Options_ShowBookmarksBar">
        <span i18n-content="toolbarShowBookmarksBar"></span>
    </label></div>
<if expr="not pp_ifdef('toolkit_views') and is_posix and not is_macosx">
    <div class="checkbox"><label>
        <input id="show-window-decorations" type="checkbox"
            pref="browser.custom_chrome_frame" metric="Options_CustomFrame"
            inverted_pref>
        <span i18n-content="showWindowDecorations"></span>
    </label></div>
</if>
  </section>
<if expr="pp_ifdef('chromeos')">
  <section>
    <h3 i18n-content="sectionTitleDevice"></h3>
    <div>
      <span i18n-content="deviceGroupDescription"></span>
      <div class="settings-row">
        <span class="option-name" i18n-content="deviceGroupPointer"></span>
        <input id="sensitivity-range" type="range" min="1" max="5"
            pref="settings.touchpad.sensitivity2" class="touch-slider">
      </div>
      <div class="settings-row">
        <button id="pointer-settings-button"
            i18n-content="pointerSettingsButtonTitle">
        </button>
        <button id="keyboard-settings-button"
            i18n-content="keyboardSettingsButtonTitle">
        </button>
      </div>
    </div>
  </section>
</if>
  <section>
    <h3 i18n-content="sectionTitleSearch"></h3>
      <div>
        <span class="settings-row"
            i18n-values=".innerHTML:defaultSearchGroupLabel">
        </span>
        <div class="settings-row">
          <select id="default-search-engine" class="weakrtl"></select>
          <button id="manage-default-search-engines"
              i18n-content="defaultSearchManageEngines">
          </button>
        </div>
        <div class="checkbox" guest-visibility="disabled">
          <label id="instant-label">
            <!-- TODO(estade): metric? -->
            <input id="instant-field-trial-control" type="checkbox"
                checked="checked" hidden>
            <input id="instant-enabled-control" type="checkbox"
                pref="instant.enabled">
            <!-- TODO(estade) There's a link in here which should not be inside
                 a <label>. -->
            <span i18n-values=".innerHTML:instantPrefAndWarning"></span>
          </label>
        </div>
      </div>
  </section>
  <section guest-visibility="hidden">
    <h3 i18n-content="sectionTitleUsers"></h3>
<if expr="pp_ifdef('chromeos')">
    <div id="sync-section">
      <div id="sync-overview" class="settings-row" hidden>
        <p i18n-content="syncOverview"></p>
        <a i18n-values="href:syncLearnMoreURL" i18n-content="learnMore"></a>
      </div>
      <div id="account-picture-wrapper">
        <img id="account-picture"
            src="chrome://theme/IDR_PROFILE_PICTURE_LOADING">
        <div id="change-picture-caption" i18n-content="changePicture"></div>
      </div>
      <div id="sync-general">
        <div id="sync-status" class="settings-row" hidden>
          <span id="sync-status-text"></span>
          <button id="sync-action-link" class="link-button"></button>
        </div>
        <div id="enable-auto-login-checkbox" class="checkbox" hidden>
          <label>
            <input id="enable-auto-login" pref="autologin.enabled"
                metric="Options_Autologin" type="checkbox">
            <span i18n-content="autologinEnabled"></span>
          </label>
        </div>
        <div class="checkbox">
          <label>
            <input id="enable-screen-lock" type="checkbox"
                pref="settings.enable_screen_lock">
            <span i18n-content="enableScreenlock"></span>
          </label>
        </div>
      </div>
      <div id="sync-buttons" class="settings-row">
        <button id="start-stop-sync" hidden></button>
        <button id="customize-sync" i18n-content="customizeSync" hidden>
        </button>
        <button id="manage-accounts-button"
            i18n-content="manageAccountsButtonTitle">
        </button>
      </div>
    </div>
</if>
    <div id="profiles-section" hidden>
      <list id="profiles-list" class="settings-list" hidden></list>
      <div id="profiles-single-message" class="settings-row"
          i18n-content="profilesSingleUser">
      </div>
      <div id="profiles-buttons">
        <button id="profiles-create" i18n-content="profilesCreate"></button>
        <button id="profiles-manage" i18n-content="profilesManage" disabled>
        </button>
        <button id="profiles-delete" i18n-content="profilesDelete"></button>
<if expr="not pp_ifdef('chromeos')">
        <button id="import-data" i18n-content="importData"></button>
</if>
      </div>
    </div>
  </section>
<if expr="not pp_ifdef('chromeos')">
  <section>
    <h3 i18n-content="sectionTitleDefaultBrowser"></h3>
    <div>
      <button id="set-as-default-browser"
          i18n-content="defaultBrowserUseAsDefault" hidden>
      </button>
      <div id="default-browser-state" i18n-content="defaultBrowserUnknown">
      </div>
      <div id="auto-launch-option" class="checkbox" hidden>
        <label id="auto-launch-label">
          <input id="auto-launch" type="checkbox">
          <span i18n-content="autoLaunchText"></span>
        </label>
      </div>
    </div>
  </section>
</if>
<div id="advanced-settings" hidden>
<div id="advanced-settings-container">
<if expr="pp_ifdef('chromeos')">
  <section>
    <h3 i18n-content="datetimeTitle"></h3>
    <div class="option-control-table">
      <div guest-visibility="disabled">
        <span class="option-name" i18n-content="timezone"></span>
        <div id="timezone-value">
          <select id="timezone-select" class="control"
              i18n-options="timezoneList" data-type="string"
              pref="cros.system.timezone">
          </select>
        </div>
      </div>
      <div class="checkbox">
        <label>
          <input id="use-24hour-clock" pref="settings.clock.use_24hour_clock"
              type="checkbox">
          <span i18n-content="use24HourClock"></span>
        </label>
      </div>
    </div>
  </section>
</if>
  <section>
    <h3 i18n-content="advancedSectionTitlePrivacy"></h3>
    <div>
      <div class="settings-row">
        <button id="privacyContentSettingsButton"
            i18n-content="privacyContentSettingsButton"></button>
        <button id="privacyClearDataButton"
            i18n-content="privacyClearDataButton"></button>
      </div>
      <div id="privacy-explanation" class="settings-row">
        <span i18n-content="improveBrowsingExperience"></span>
        <span i18n-content="disableWebServices"></span>
        <a target="_blank" i18n-content="learnMore"
            i18n-values="href:privacyLearnMoreURL"></a>
      </div>
      <div class="checkbox">
        <label>
          <input id="alternateErrorPagesEnabled"
              pref="alternate_error_pages.enabled"
              metric="Options_LinkDoctorCheckbox" type="checkbox">
          <span i18n-content="linkDoctorPref"></span>
        </label>
      </div>
      <div class="checkbox" guest-visibility="disabled">
        <label>
          <input id="searchSuggestEnabled" pref="search.suggest_enabled"
              metric="Options_UseSuggestCheckbox" type="checkbox">
          <span i18n-content="suggestPref"></span>
        </label>
      </div>
      <div class="checkbox" guest-visibility="disabled">
        <label>
          <input id="dnsPrefetchingEnabled" pref="dns_prefetching.enabled"
              metric="Options_DnsPrefetchCheckbox" type="checkbox">
          <span i18n-content="networkPredictionEnabledDescription"></span>
        </label>
      </div>
      <div class="checkbox">
        <label>
          <input id="safeBrowsingEnabled" pref="safebrowsing.enabled"
              metric="Options_SafeBrowsingCheckbox" type="checkbox">
          <span i18n-content="safeBrowsingEnableProtection"></span>
        </label>
      </div>
<if expr="pp_ifdef('_google_chrome')">
      <div class="checkbox">
        <label>
          <input id="spellingServiceEnabled"
              pref="spellcheck.use_spelling_service"
              metric="Options_UseSpellingServiceCheckbox" type="checkbox">
          <span i18n-content="spellingPref"></span>
        </label>
      </div>
      <div id="metricsReportingSetting" class="checkbox">
        <label>
<if expr="pp_ifdef('chromeos')">
          <input id="metricsReportingEnabled"
              pref="cros.metrics.reportingEnabled" type="checkbox">
</if>
<if expr="not pp_ifdef('chromeos')">
          <input id="metricsReportingEnabled" type="checkbox">
</if>
          <span i18n-content="enableLogging"></span>
        </label>
      </div>
</if>  <!-- pp_ifdef('_google_chrome') -->
    </div>
  </section>
  <!-- By default, the bluetooth section is hidden.  It is only visible if a
       bluetooth adapter is discovered -->
<if expr="pp_ifdef('chromeos')">
  <section id="bluetooth-devices" hidden>
    <h3 i18n-content="bluetooth"></h3>
    <div id="bluetooth-options-div">
      <div class="checkbox">
        <label>
          <input type="checkbox" id="enable-bluetooth">
          <span i18n-content="enableBluetooth">
        </label>
      </div>
      <div class="settings-list bluetooth-device-list" hidden>
        <list id="bluetooth-paired-devices-list"></list>
        <div id="bluetooth-paired-devices-list-empty-placeholder"
            class="bluetooth-empty-list-label" hidden>
          <span i18n-content="bluetoothNoDevices"></span>
        </div>
      </div>
      <div id="bluetooth-button-group">
        <button id="bluetooth-add-device"
            i18n-content="addBluetoothDevice" hidden></button>
        <button id="bluetooth-reconnect-device"
            i18n-content="bluetoothConnectDevice" disabled hidden></button>
      </div>
    </div>
  </section>
</if>
  <section id="passwords-and-autofill-section">
    <h3 i18n-content="passwordsAndAutofillGroupName"></h3>
    <div class="checkbox">
      <label>
        <input id="autofill-enabled" pref="autofill.enabled"
            metric="Options_FormAutofill" type="checkbox">
        <span i18n-content="autofillEnabled"></span>
      </label>
      <button id="autofill-settings" class="link-button"
          pref="autofill.enabled"
          i18n-content="manageAutofillSettings"></button>
    </div>
    <div class="checkbox">
      <label>
        <input id="password-manager-enabled"
            pref="profile.password_manager_enabled"
            metric="Options_PasswordManager" type="checkbox">
        <span i18n-content="passwordManagerEnabled"></span>
      </label>
      <button id="manage-passwords" class="link-button"
          i18n-content="managePasswords"
          pref="profile.password_manager_enabled"></button>
    </div>
<if expr="is_macosx">
    <div id="mac-passwords-warning" i18n-content="macPasswordsWarning" hidden>
    </div>
</if>
    <!-- This makes the managed-banner appear when the "pref" is configured by
         the IT administrator. -->
    <input name="password_allow_show_hidden" type="text"
        pref="profile.password_manager_allow_show_passwords" hidden>
  </section>
  <section id="web-content-section">
    <h3 i18n-content="advancedSectionTitleContent"></h3>
    <div>
      <div class="settings-row">
        <label class="web-content-select-label">
          <span i18n-content="defaultFontSizeLabel"></span>
          <select id="defaultFontSize">
            <option value="9" i18n-content="fontSizeLabelVerySmall">
            </option>
            <option value="12" i18n-content="fontSizeLabelSmall"></option>
            <option value="16" i18n-content="fontSizeLabelMedium"></option>
            <option value="20" i18n-content="fontSizeLabelLarge"></option>
            <option value="24" i18n-content="fontSizeLabelVeryLarge">
            </option>
          </select>
        </label>
        <button id="fontSettingsCustomizeFontsButton"
            i18n-content="fontSettingsCustomizeFontsButton"></button>
      </div>
      <div class="settings-row">
        <label class="web-content-select-label">
          <span i18n-content="defaultZoomFactorLabel"></span>
          <select id="defaultZoomFactor" dataType="double"></select>
        </label>
      </div>
<if expr="is_macosx">
      <div class="checkbox">
        <label>
          <input id="tabsToLinksPref" pref="webkit.webprefs.tabs_to_links"
              metric="Options_TabsToLinks" type="checkbox">
          <span i18n-content="tabsToLinksPref"></span>
        </label>
      </div>
</if>
    </div>
  </section>
<if expr="not pp_ifdef('chromeos')">
  <section>
    <h3 i18n-content="advancedSectionTitleNetwork"></h3>
    <div>
      <span id="proxiesLabel" class="settings-row"></span>
      <div class="settings-row">
        <button id="proxiesConfigureButton"
            i18n-content="proxiesConfigureButton"></button>
      </div>
    </div>
  </section>
</if>
  <section>
    <h3 i18n-content="advancedSectionTitleLanguages"></h3>
    <span class="settings-row" i18n-content="languageSectionLabel"></span>
    <button id="language-button"
        i18n-content="languageAndSpellCheckSettingsButton"></button>
    <div class="checkbox">
      <label>
        <input id="enableTranslate" pref="translate.enabled"
            metric="Options_Translate" type="checkbox">
        <span i18n-content="translateEnableTranslate"></span>
      </label>
    </div>
  </section>
<if expr="not pp_ifdef('chromeos')">
  <section>
    <h3 i18n-content="downloadLocationGroupName"></h3>
    <div>
      <div class="settings-row">
        <label>
          <span i18n-content="downloadLocationBrowseTitle"></span>
          <input id="downloadLocationPath" class="weakrtl" type="text"
              pref="download.default_directory" size="36" readonly>
        </label>
        <button id="downloadLocationChangeButton"
            pref="download.prompt_for_download"
            i18n-content="downloadLocationChangeButton"></button>
      </div>
      <div class="checkbox">
        <label>
          <input type="checkbox"
              pref="download.prompt_for_download"
              metric="Options_AskForSaveLocation">
          <span i18n-content="downloadLocationAskForSaveLocation"></span>
        </label>
      </div>
      <div id="auto-open-file-types-section" hidden>
        <div id="auto-open-file-types-container">
          <div id="auto-open-file-types-label"
              i18n-content="autoOpenFileTypesInfo"></div>
          <button id="autoOpenFileTypesResetToDefault"
              i18n-content="autoOpenFileTypesResetToDefault"></button>
        </div>
      </div>
    </div>
  </section>
</if>
  <section>
      <h3 i18n-content="advancedSectionTitleSecurity"></h3>
      <div>
        <div class="settings-row">
          <button id="certificatesManageButton"
              i18n-content="certificatesManageButton"></button>
        </div>
        <div class="checkbox">
          <label>
            <input id="sslCheckRevocation" type="checkbox">
            <span i18n-content="sslCheckRevocation"></span>
          </label>
        </div>
      </div>
    </section>
<if expr="not pp_ifdef('chromeos')">
    <section id="cloud-print-connector-section">
      <h3 i18n-content="advancedSectionTitleCloudPrint"></h3>
      <div>
        <span id="cloudPrintConnectorLabel" class="settings-row"
             i18n-content="cloudPrintConnectorDisabledLabel"></span>
        <div class="settings-row">
          <button id="cloudPrintConnectorSetupButton"
              i18n-content="cloudPrintConnectorDisabledButton"></button>
          <button id="cloudPrintManageButton"
              i18n-content="cloudPrintConnectorEnabledManageButton"></button>
        </div>
      </div>
    </section>
</if>
<if expr="pp_ifdef('chromeos')">
  <section id="cloud-print-connector-section">
    <h3 i18n-content="advancedSectionTitleCloudPrint"></h3>
    <div>
      <div>
        <span i18n-content="cloudPrintChromeosOptionLabel"></span> 
        <a target="_blank" i18n-content="learnMore"
            i18n-values="href:cloudPrintLearnMoreURL"></a>
      </div>
      <div class="settings-row">
        <button id="cloudPrintManageButton"
                i18n-content="cloudPrintChromeosOptionButton"></button>
      </div>
    </div>
  </section>
<if expr="pp_ifdef('chromeos')">
  <!-- This section is duplicated here for ChromeOS. This must stay in sync
       with the section above. -->
  <section id="startup-section" guest-visibility="hidden">
    <h3 i18n-content="sectionTitleStartup"></h3>
    <div>
      <div class="radio">
        <label>
          <input id="startup-newtab" type="radio" name="startup" value="5"
              pref="session.restore_on_startup"
              metric="Options_Startup_NewTab">
          <span i18n-content="startupShowNewTab"></span>
        </label>
      </div>
      <div class="radio">
        <label>
          <input id="startup-restore-session" type="radio" name="startup"
              value="1" pref="session.restore_on_startup"
              metric="Options_Startup_LastSession">
          <span id="old-startup-last-text"
              i18n-content="startupShowLastSession">
          </span>
          <span id="new-startup-last-text"
              i18n-content="startupRestoreLastSession" hidden>
          </span>
        </label>
      </div>
      <div class="radio">
        <label>
          <input id="startup-show-pages" type="radio" name="startup"
              pref="session.restore_on_startup"
              value="4" metric="Options_Startup_Custom">
          <span>
            <span i18n-content="startupShowPages"></span>
            <button id="startup-set-pages" class="link-button"
                i18n-content="startupSetPages"></button>
          </span>
        </label>
      </div>
    </div>
  </section>
</if>
  <section>
    <h3 i18n-content="accessibilityTitle"></h3>
    <div class="option-control-table">
      <div class="option-name">
        <div class="checkbox">
          <label>
            <input id="accessibility-spoken-feedback-check" type="checkbox">
            <span i18n-content="accessibilitySpokenFeedback"></span>
          </label>
        </div>
      </div>
    </div>
  </section>
</if>
<if expr="not is_macosx and not pp_ifdef('chromeos')">
  <section id="background-section">
    <h3 i18n-content="advancedSectionTitleBackground"></h3>
    <div class="checkbox">
      <label>
        <input id="backgroundModeCheckbox" type="checkbox">
        <span i18n-content="backgroundModeCheckbox"></span>
      </label>
    </div>
  </section>
</if>
</div>  <!-- advanced-settings-container -->
</div>  <!-- advanced-settings -->
<footer>
  <button id="advanced-settings-expander" class="link-button"
      i18n-content="showAdvancedSettings">
  </button>
</footer>
</div>
<commit_msg>Add guest-visibility attribute to set-wallpaper button<commit_after><div id="settings" class="page" hidden>
  <header>
    <h1 i18n-content="settingsTitle"></h1>
    <span id="browser-options-search-field-container"
        class="search-field-container">
      <input id="search-field" type="search"
          i18n-values="placeholder:searchPlaceholder;
                       aria-label:searchPlaceholder" incremental>
    </span>
  </header>
<if expr="not pp_ifdef('chromeos')">
  <section id="sync-section">
    <h3 i18n-content="sectionTitleSync"></h3>
    <div id="sync-overview" class="settings-row" hidden>
      <p i18n-content="syncOverview"></p>
      <a i18n-values="href:syncLearnMoreURL" i18n-content="learnMore"
          target="_blank">
      </a>
    </div>
    <div id="sync-status" class="settings-row" hidden>
      <span id="sync-status-text"></span>
      <button id="sync-action-link" class="link-button"></button>
    </div>
    <div id="sync-buttons" class="settings-row">
      <button id="start-stop-sync" hidden></button>
      <button id="customize-sync" i18n-content="customizeSync" hidden>
      </button>
      <div id="enable-auto-login-checkbox" class="checkbox" hidden>
        <label>
          <input id="enable-auto-login" pref="autologin.enabled"
              metric="Options_Autologin" type="checkbox">
          <span i18n-content="autologinEnabled"></span>
        </label>
      </div>
    </div>
  </section>
</if>
<if expr="pp_ifdef('chromeos')">
  <section>
    <h3 i18n-content="sectionTitleInternet"></h3>
    <div id="network-settings">
      <list id="network-list"></list>
      <div id="shared-proxies" class="checkbox">
        <label>
          <input id="use-shared-proxies" type="checkbox"
              pref="settings.use_shared_proxies">
          <span i18n-content="useSharedProxies"></span>
        </label>
      </div>
      <div id="network-locked-message" hidden>
        <span i18n-content="accessLockedMsg"></span>
      </div>
      <div id="network-menus"></div>
    </div>
  </section>
</if>
<if expr="not pp_ifdef('chromeos')">
  <!-- This section is duplicated below for ChromeOS. Both sections must stay
       in sync. -->
  <section id="startup-section">
    <h3 i18n-content="sectionTitleStartup"></h3>
    <div>
      <div class="radio">
        <label>
          <input id="startup-newtab" type="radio" name="startup" value="5"
              pref="session.restore_on_startup"
              metric="Options_Startup_NewTab">
          <span i18n-content="startupShowNewTab"></span>
        </label>
      </div>
      <div class="radio">
        <label>
          <input id="startup-restore-session" type="radio" name="startup"
              value="1" pref="session.restore_on_startup"
              metric="Options_Startup_LastSession">
          <span id="old-startup-last-text"
              i18n-content="startupShowLastSession">
          </span>
          <span id="new-startup-last-text"
              i18n-content="startupRestoreLastSession" hidden>
          </span>
        </label>
      </div>
      <div class="radio">
        <label>
          <input id="startup-show-pages" type="radio" name="startup"
              pref="session.restore_on_startup"
              value="4" metric="Options_Startup_Custom">
          <span>
            <span i18n-content="startupShowPages"></span>
            <button id="startup-set-pages" class="link-button"
                i18n-content="startupSetPages">
            </button>
          </span>
        </label>
      </div>
    </div>
  </section>
</if>
  <section>
    <h3 i18n-content="sectionTitleAppearance"></h3>
    <div>
<if expr="pp_ifdef('chromeos') and pp_ifdef('use_ash')">
      <button id="set-wallpaper" i18n-content="setWallpaper"
          guest-visibility="disabled"></button>
</if>
<if expr="not pp_ifdef('toolkit_views') and is_posix and not is_macosx">
      <button id="themes-gallery" i18n-content="themesGallery"></button>
      <button id="themes-GTK-button"
          i18n-content="themesGTKButton"></button>
      <button id="themes-reset"
          i18n-content="themesSetClassic"></button>
</if>
<if expr="pp_ifdef('toolkit_views') or is_win or is_macosx">
      <button id="themes-gallery" i18n-content="themesGallery"></button>
      <button id="themes-reset" i18n-content="themesReset"></button>
</if>
    </div>
    <div class="checkbox" guest-visibility="disabled"><label>
      <input id="show-home-button" type="checkbox"
          pref="browser.show_home_button" metric="Options_Homepage_HomeButton">
      <span i18n-content="homePageShowHomeButton"></span>
    </label></div>
    <div id="change-home-page-section" hidden>
      <div id="change-home-page-section-container" guest-visibility="disabled">
        <span id="home-page-ntp" class="home-page-label"
            i18n-content="homePageNtp"></span>
        <span id="home-page-url" class="home-page-label"></span>
        <button id="change-home-page" class="link-button"
            i18n-content="changeHomePage"></button>
      </div>
    </div>
    <div class="checkbox" guest-visibility="disabled"><label>
        <input type="checkbox" pref="bookmark_bar.show_on_all_tabs"
            metric="Options_ShowBookmarksBar">
        <span i18n-content="toolbarShowBookmarksBar"></span>
    </label></div>
<if expr="not pp_ifdef('toolkit_views') and is_posix and not is_macosx">
    <div class="checkbox"><label>
        <input id="show-window-decorations" type="checkbox"
            pref="browser.custom_chrome_frame" metric="Options_CustomFrame"
            inverted_pref>
        <span i18n-content="showWindowDecorations"></span>
    </label></div>
</if>
  </section>
<if expr="pp_ifdef('chromeos')">
  <section>
    <h3 i18n-content="sectionTitleDevice"></h3>
    <div>
      <span i18n-content="deviceGroupDescription"></span>
      <div class="settings-row">
        <span class="option-name" i18n-content="deviceGroupPointer"></span>
        <input id="sensitivity-range" type="range" min="1" max="5"
            pref="settings.touchpad.sensitivity2" class="touch-slider">
      </div>
      <div class="settings-row">
        <button id="pointer-settings-button"
            i18n-content="pointerSettingsButtonTitle">
        </button>
        <button id="keyboard-settings-button"
            i18n-content="keyboardSettingsButtonTitle">
        </button>
      </div>
    </div>
  </section>
</if>
  <section>
    <h3 i18n-content="sectionTitleSearch"></h3>
      <div>
        <span class="settings-row"
            i18n-values=".innerHTML:defaultSearchGroupLabel">
        </span>
        <div class="settings-row">
          <select id="default-search-engine" class="weakrtl"></select>
          <button id="manage-default-search-engines"
              i18n-content="defaultSearchManageEngines">
          </button>
        </div>
        <div class="checkbox" guest-visibility="disabled">
          <label id="instant-label">
            <!-- TODO(estade): metric? -->
            <input id="instant-field-trial-control" type="checkbox"
                checked="checked" hidden>
            <input id="instant-enabled-control" type="checkbox"
                pref="instant.enabled">
            <!-- TODO(estade) There's a link in here which should not be inside
                 a <label>. -->
            <span i18n-values=".innerHTML:instantPrefAndWarning"></span>
          </label>
        </div>
      </div>
  </section>
  <section guest-visibility="hidden">
    <h3 i18n-content="sectionTitleUsers"></h3>
<if expr="pp_ifdef('chromeos')">
    <div id="sync-section">
      <div id="sync-overview" class="settings-row" hidden>
        <p i18n-content="syncOverview"></p>
        <a i18n-values="href:syncLearnMoreURL" i18n-content="learnMore"></a>
      </div>
      <div id="account-picture-wrapper">
        <img id="account-picture"
            src="chrome://theme/IDR_PROFILE_PICTURE_LOADING">
        <div id="change-picture-caption" i18n-content="changePicture"></div>
      </div>
      <div id="sync-general">
        <div id="sync-status" class="settings-row" hidden>
          <span id="sync-status-text"></span>
          <button id="sync-action-link" class="link-button"></button>
        </div>
        <div id="enable-auto-login-checkbox" class="checkbox" hidden>
          <label>
            <input id="enable-auto-login" pref="autologin.enabled"
                metric="Options_Autologin" type="checkbox">
            <span i18n-content="autologinEnabled"></span>
          </label>
        </div>
        <div class="checkbox">
          <label>
            <input id="enable-screen-lock" type="checkbox"
                pref="settings.enable_screen_lock">
            <span i18n-content="enableScreenlock"></span>
          </label>
        </div>
      </div>
      <div id="sync-buttons" class="settings-row">
        <button id="start-stop-sync" hidden></button>
        <button id="customize-sync" i18n-content="customizeSync" hidden>
        </button>
        <button id="manage-accounts-button"
            i18n-content="manageAccountsButtonTitle">
        </button>
      </div>
    </div>
</if>
    <div id="profiles-section" hidden>
      <list id="profiles-list" class="settings-list" hidden></list>
      <div id="profiles-single-message" class="settings-row"
          i18n-content="profilesSingleUser">
      </div>
      <div id="profiles-buttons">
        <button id="profiles-create" i18n-content="profilesCreate"></button>
        <button id="profiles-manage" i18n-content="profilesManage" disabled>
        </button>
        <button id="profiles-delete" i18n-content="profilesDelete"></button>
<if expr="not pp_ifdef('chromeos')">
        <button id="import-data" i18n-content="importData"></button>
</if>
      </div>
    </div>
  </section>
<if expr="not pp_ifdef('chromeos')">
  <section>
    <h3 i18n-content="sectionTitleDefaultBrowser"></h3>
    <div>
      <button id="set-as-default-browser"
          i18n-content="defaultBrowserUseAsDefault" hidden>
      </button>
      <div id="default-browser-state" i18n-content="defaultBrowserUnknown">
      </div>
      <div id="auto-launch-option" class="checkbox" hidden>
        <label id="auto-launch-label">
          <input id="auto-launch" type="checkbox">
          <span i18n-content="autoLaunchText"></span>
        </label>
      </div>
    </div>
  </section>
</if>
<div id="advanced-settings" hidden>
<div id="advanced-settings-container">
<if expr="pp_ifdef('chromeos')">
  <section>
    <h3 i18n-content="datetimeTitle"></h3>
    <div class="option-control-table">
      <div guest-visibility="disabled">
        <span class="option-name" i18n-content="timezone"></span>
        <div id="timezone-value">
          <select id="timezone-select" class="control"
              i18n-options="timezoneList" data-type="string"
              pref="cros.system.timezone">
          </select>
        </div>
      </div>
      <div class="checkbox">
        <label>
          <input id="use-24hour-clock" pref="settings.clock.use_24hour_clock"
              type="checkbox">
          <span i18n-content="use24HourClock"></span>
        </label>
      </div>
    </div>
  </section>
</if>
  <section>
    <h3 i18n-content="advancedSectionTitlePrivacy"></h3>
    <div>
      <div class="settings-row">
        <button id="privacyContentSettingsButton"
            i18n-content="privacyContentSettingsButton"></button>
        <button id="privacyClearDataButton"
            i18n-content="privacyClearDataButton"></button>
      </div>
      <div id="privacy-explanation" class="settings-row">
        <span i18n-content="improveBrowsingExperience"></span>
        <span i18n-content="disableWebServices"></span>
        <a target="_blank" i18n-content="learnMore"
            i18n-values="href:privacyLearnMoreURL"></a>
      </div>
      <div class="checkbox">
        <label>
          <input id="alternateErrorPagesEnabled"
              pref="alternate_error_pages.enabled"
              metric="Options_LinkDoctorCheckbox" type="checkbox">
          <span i18n-content="linkDoctorPref"></span>
        </label>
      </div>
      <div class="checkbox" guest-visibility="disabled">
        <label>
          <input id="searchSuggestEnabled" pref="search.suggest_enabled"
              metric="Options_UseSuggestCheckbox" type="checkbox">
          <span i18n-content="suggestPref"></span>
        </label>
      </div>
      <div class="checkbox" guest-visibility="disabled">
        <label>
          <input id="dnsPrefetchingEnabled" pref="dns_prefetching.enabled"
              metric="Options_DnsPrefetchCheckbox" type="checkbox">
          <span i18n-content="networkPredictionEnabledDescription"></span>
        </label>
      </div>
      <div class="checkbox">
        <label>
          <input id="safeBrowsingEnabled" pref="safebrowsing.enabled"
              metric="Options_SafeBrowsingCheckbox" type="checkbox">
          <span i18n-content="safeBrowsingEnableProtection"></span>
        </label>
      </div>
<if expr="pp_ifdef('_google_chrome')">
      <div class="checkbox">
        <label>
          <input id="spellingServiceEnabled"
              pref="spellcheck.use_spelling_service"
              metric="Options_UseSpellingServiceCheckbox" type="checkbox">
          <span i18n-content="spellingPref"></span>
        </label>
      </div>
      <div id="metricsReportingSetting" class="checkbox">
        <label>
<if expr="pp_ifdef('chromeos')">
          <input id="metricsReportingEnabled"
              pref="cros.metrics.reportingEnabled" type="checkbox">
</if>
<if expr="not pp_ifdef('chromeos')">
          <input id="metricsReportingEnabled" type="checkbox">
</if>
          <span i18n-content="enableLogging"></span>
        </label>
      </div>
</if>  <!-- pp_ifdef('_google_chrome') -->
    </div>
  </section>
  <!-- By default, the bluetooth section is hidden.  It is only visible if a
       bluetooth adapter is discovered -->
<if expr="pp_ifdef('chromeos')">
  <section id="bluetooth-devices" hidden>
    <h3 i18n-content="bluetooth"></h3>
    <div id="bluetooth-options-div">
      <div class="checkbox">
        <label>
          <input type="checkbox" id="enable-bluetooth">
          <span i18n-content="enableBluetooth">
        </label>
      </div>
      <div class="settings-list bluetooth-device-list" hidden>
        <list id="bluetooth-paired-devices-list"></list>
        <div id="bluetooth-paired-devices-list-empty-placeholder"
            class="bluetooth-empty-list-label" hidden>
          <span i18n-content="bluetoothNoDevices"></span>
        </div>
      </div>
      <div id="bluetooth-button-group">
        <button id="bluetooth-add-device"
            i18n-content="addBluetoothDevice" hidden></button>
        <button id="bluetooth-reconnect-device"
            i18n-content="bluetoothConnectDevice" disabled hidden></button>
      </div>
    </div>
  </section>
</if>
  <section id="passwords-and-autofill-section">
    <h3 i18n-content="passwordsAndAutofillGroupName"></h3>
    <div class="checkbox">
      <label>
        <input id="autofill-enabled" pref="autofill.enabled"
            metric="Options_FormAutofill" type="checkbox">
        <span i18n-content="autofillEnabled"></span>
      </label>
      <button id="autofill-settings" class="link-button"
          pref="autofill.enabled"
          i18n-content="manageAutofillSettings"></button>
    </div>
    <div class="checkbox">
      <label>
        <input id="password-manager-enabled"
            pref="profile.password_manager_enabled"
            metric="Options_PasswordManager" type="checkbox">
        <span i18n-content="passwordManagerEnabled"></span>
      </label>
      <button id="manage-passwords" class="link-button"
          i18n-content="managePasswords"
          pref="profile.password_manager_enabled"></button>
    </div>
<if expr="is_macosx">
    <div id="mac-passwords-warning" i18n-content="macPasswordsWarning" hidden>
    </div>
</if>
    <!-- This makes the managed-banner appear when the "pref" is configured by
         the IT administrator. -->
    <input name="password_allow_show_hidden" type="text"
        pref="profile.password_manager_allow_show_passwords" hidden>
  </section>
  <section id="web-content-section">
    <h3 i18n-content="advancedSectionTitleContent"></h3>
    <div>
      <div class="settings-row">
        <label class="web-content-select-label">
          <span i18n-content="defaultFontSizeLabel"></span>
          <select id="defaultFontSize">
            <option value="9" i18n-content="fontSizeLabelVerySmall">
            </option>
            <option value="12" i18n-content="fontSizeLabelSmall"></option>
            <option value="16" i18n-content="fontSizeLabelMedium"></option>
            <option value="20" i18n-content="fontSizeLabelLarge"></option>
            <option value="24" i18n-content="fontSizeLabelVeryLarge">
            </option>
          </select>
        </label>
        <button id="fontSettingsCustomizeFontsButton"
            i18n-content="fontSettingsCustomizeFontsButton"></button>
      </div>
      <div class="settings-row">
        <label class="web-content-select-label">
          <span i18n-content="defaultZoomFactorLabel"></span>
          <select id="defaultZoomFactor" dataType="double"></select>
        </label>
      </div>
<if expr="is_macosx">
      <div class="checkbox">
        <label>
          <input id="tabsToLinksPref" pref="webkit.webprefs.tabs_to_links"
              metric="Options_TabsToLinks" type="checkbox">
          <span i18n-content="tabsToLinksPref"></span>
        </label>
      </div>
</if>
    </div>
  </section>
<if expr="not pp_ifdef('chromeos')">
  <section>
    <h3 i18n-content="advancedSectionTitleNetwork"></h3>
    <div>
      <span id="proxiesLabel" class="settings-row"></span>
      <div class="settings-row">
        <button id="proxiesConfigureButton"
            i18n-content="proxiesConfigureButton"></button>
      </div>
    </div>
  </section>
</if>
  <section>
    <h3 i18n-content="advancedSectionTitleLanguages"></h3>
    <span class="settings-row" i18n-content="languageSectionLabel"></span>
    <button id="language-button"
        i18n-content="languageAndSpellCheckSettingsButton"></button>
    <div class="checkbox">
      <label>
        <input id="enableTranslate" pref="translate.enabled"
            metric="Options_Translate" type="checkbox">
        <span i18n-content="translateEnableTranslate"></span>
      </label>
    </div>
  </section>
<if expr="not pp_ifdef('chromeos')">
  <section>
    <h3 i18n-content="downloadLocationGroupName"></h3>
    <div>
      <div class="settings-row">
        <label>
          <span i18n-content="downloadLocationBrowseTitle"></span>
          <input id="downloadLocationPath" class="weakrtl" type="text"
              pref="download.default_directory" size="36" readonly>
        </label>
        <button id="downloadLocationChangeButton"
            pref="download.prompt_for_download"
            i18n-content="downloadLocationChangeButton"></button>
      </div>
      <div class="checkbox">
        <label>
          <input type="checkbox"
              pref="download.prompt_for_download"
              metric="Options_AskForSaveLocation">
          <span i18n-content="downloadLocationAskForSaveLocation"></span>
        </label>
      </div>
      <div id="auto-open-file-types-section" hidden>
        <div id="auto-open-file-types-container">
          <div id="auto-open-file-types-label"
              i18n-content="autoOpenFileTypesInfo"></div>
          <button id="autoOpenFileTypesResetToDefault"
              i18n-content="autoOpenFileTypesResetToDefault"></button>
        </div>
      </div>
    </div>
  </section>
</if>
  <section>
      <h3 i18n-content="advancedSectionTitleSecurity"></h3>
      <div>
        <div class="settings-row">
          <button id="certificatesManageButton"
              i18n-content="certificatesManageButton"></button>
        </div>
        <div class="checkbox">
          <label>
            <input id="sslCheckRevocation" type="checkbox">
            <span i18n-content="sslCheckRevocation"></span>
          </label>
        </div>
      </div>
    </section>
<if expr="not pp_ifdef('chromeos')">
    <section id="cloud-print-connector-section">
      <h3 i18n-content="advancedSectionTitleCloudPrint"></h3>
      <div>
        <span id="cloudPrintConnectorLabel" class="settings-row"
             i18n-content="cloudPrintConnectorDisabledLabel"></span>
        <div class="settings-row">
          <button id="cloudPrintConnectorSetupButton"
              i18n-content="cloudPrintConnectorDisabledButton"></button>
          <button id="cloudPrintManageButton"
              i18n-content="cloudPrintConnectorEnabledManageButton"></button>
        </div>
      </div>
    </section>
</if>
<if expr="pp_ifdef('chromeos')">
  <section id="cloud-print-connector-section">
    <h3 i18n-content="advancedSectionTitleCloudPrint"></h3>
    <div>
      <div>
        <span i18n-content="cloudPrintChromeosOptionLabel"></span> 
        <a target="_blank" i18n-content="learnMore"
            i18n-values="href:cloudPrintLearnMoreURL"></a>
      </div>
      <div class="settings-row">
        <button id="cloudPrintManageButton"
                i18n-content="cloudPrintChromeosOptionButton"></button>
      </div>
    </div>
  </section>
<if expr="pp_ifdef('chromeos')">
  <!-- This section is duplicated here for ChromeOS. This must stay in sync
       with the section above. -->
  <section id="startup-section" guest-visibility="hidden">
    <h3 i18n-content="sectionTitleStartup"></h3>
    <div>
      <div class="radio">
        <label>
          <input id="startup-newtab" type="radio" name="startup" value="5"
              pref="session.restore_on_startup"
              metric="Options_Startup_NewTab">
          <span i18n-content="startupShowNewTab"></span>
        </label>
      </div>
      <div class="radio">
        <label>
          <input id="startup-restore-session" type="radio" name="startup"
              value="1" pref="session.restore_on_startup"
              metric="Options_Startup_LastSession">
          <span id="old-startup-last-text"
              i18n-content="startupShowLastSession">
          </span>
          <span id="new-startup-last-text"
              i18n-content="startupRestoreLastSession" hidden>
          </span>
        </label>
      </div>
      <div class="radio">
        <label>
          <input id="startup-show-pages" type="radio" name="startup"
              pref="session.restore_on_startup"
              value="4" metric="Options_Startup_Custom">
          <span>
            <span i18n-content="startupShowPages"></span>
            <button id="startup-set-pages" class="link-button"
                i18n-content="startupSetPages"></button>
          </span>
        </label>
      </div>
    </div>
  </section>
</if>
  <section>
    <h3 i18n-content="accessibilityTitle"></h3>
    <div class="option-control-table">
      <div class="option-name">
        <div class="checkbox">
          <label>
            <input id="accessibility-spoken-feedback-check" type="checkbox">
            <span i18n-content="accessibilitySpokenFeedback"></span>
          </label>
        </div>
      </div>
    </div>
  </section>
</if>
<if expr="not is_macosx and not pp_ifdef('chromeos')">
  <section id="background-section">
    <h3 i18n-content="advancedSectionTitleBackground"></h3>
    <div class="checkbox">
      <label>
        <input id="backgroundModeCheckbox" type="checkbox">
        <span i18n-content="backgroundModeCheckbox"></span>
      </label>
    </div>
  </section>
</if>
</div>  <!-- advanced-settings-container -->
</div>  <!-- advanced-settings -->
<footer>
  <button id="advanced-settings-expander" class="link-button"
      i18n-content="showAdvancedSettings">
  </button>
</footer>
</div>

{'fraction_non_alphanumeric': 0.15740798730715433, 'fraction_numerical': 0.01377841798709839, 'mean_word_length': 2.705864149775646, 'pattern_counts': {'":': 0, '<': 1337, '<?xml version=': 0, '>': 1337, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 22, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6642848', 'n_tokens_mistral': 14981, 'n_tokens_neox': 14537, 'n_words': 2368}