Commit 760aa887 authored by John Lee's avatar John Lee Committed by Commit Bot

Settings WebUI: Remove two-line/three-line classes on Sync page

Bug: 686905
Change-Id: I6f9a55492b7f6cd02be0fda7e9c4110fed2cb4f7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2333289
Commit-Queue: John Lee <johntlee@chromium.org>
Reviewed-by: default avatardpapad <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#794694}
parent 0eea23cd
...@@ -72,10 +72,6 @@ ...@@ -72,10 +72,6 @@
padding-bottom: 8px; padding-bottom: 8px;
} }
#other-sync-items > .list-item:not(.first) {
border-top: var(--cr-separator-line);
}
.passphrase-reset-icon { .passphrase-reset-icon {
margin-inline-end: 8px; margin-inline-end: 8px;
} }
...@@ -179,9 +175,7 @@ ...@@ -179,9 +175,7 @@
<template is="dom-if" if="[[!syncSetupFriendlySettings_]]"> <template is="dom-if" if="[[!syncSetupFriendlySettings_]]">
<div id="encryptionDescription" <div id="encryptionDescription"
hidden="[[syncPrefs.passphraseRequired]]" hidden="[[syncPrefs.passphraseRequired]]"
class$="single-column cr-padded-text class="hr cr-padded-text">
[[getPassphraseHintLines_(syncPrefs.encryptAllData)]]
list-item">
$i18n{encryptionOptionsTitle} $i18n{encryptionOptionsTitle}
<div class="secondary"> <div class="secondary">
$i18n{syncDataEncryptedText} $i18n{syncDataEncryptedText}
...@@ -204,8 +198,7 @@ ...@@ -204,8 +198,7 @@
<cr-expand-button id="encryptionDescription" <cr-expand-button id="encryptionDescription"
hidden="[[syncPrefs.passphraseRequired]]" hidden="[[syncPrefs.passphraseRequired]]"
expanded="{{encryptionExpanded_}}" expanded="{{encryptionExpanded_}}"
class$="list-item class="hr">
[[getPassphraseHintLines_(syncPrefs.encryptAllData)]]">
$i18n{encryptionOptionsTitle} $i18n{encryptionOptionsTitle}
<div class="secondary"> <div class="secondary">
$i18n{syncDataEncryptedText} $i18n{syncDataEncryptedText}
......
...@@ -516,16 +516,6 @@ Polymer({ ...@@ -516,16 +516,6 @@ Polymer({
} }
}, },
/**
* When there is a sync passphrase, some items have an additional line for the
* passphrase reset hint, making them three lines rather than two.
* @return {string}
* @private
*/
getPassphraseHintLines_() {
return this.syncPrefs.encryptAllData ? 'three-line' : 'two-line';
},
/** /**
* @return {boolean} * @return {boolean}
* @private * @private
......
...@@ -137,7 +137,8 @@ suite('SyncSettingsTests', function() { ...@@ -137,7 +137,8 @@ suite('SyncSettingsTests', function() {
assertFalse(syncSection.hidden); assertFalse(syncSection.hidden);
assertTrue(syncPage.$$('#sync-separator').hidden); assertTrue(syncPage.$$('#sync-separator').hidden);
assertTrue(otherItems.classList.contains('list-frame')); assertTrue(otherItems.classList.contains('list-frame'));
assertEquals(otherItems.querySelectorAll(':scope > .list-item').length, 1); assertEquals(
otherItems.querySelectorAll(':scope > cr-expand-button').length, 1);
assertEquals(otherItems.querySelectorAll(':scope > cr-link-row').length, 3); assertEquals(otherItems.querySelectorAll(':scope > cr-link-row').length, 3);
// Test sync paused state. // Test sync paused state.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment