Commit 7166a829 authored by stevenjb's avatar stevenjb Committed by Commit bot

Fix 'Automatic name servers' display in Settings'

If 'Automatic' is not the current name server selection we should show
the saved values instead of the current values.

BUG=417387

Review URL: https://codereview.chromium.org/647713004

Cr-Commit-Position: refs/heads/master@{#300715}
parent fbda2224
...@@ -1377,7 +1377,10 @@ cr.define('options.internet', function() { ...@@ -1377,7 +1377,10 @@ cr.define('options.internet', function() {
else if (staticNameServersString == inetNameServersString) else if (staticNameServersString == inetNameServersString)
nameServerType = 'user'; nameServerType = 'user';
} }
$('automatic-dns-display').textContent = inetNameServersString; if (nameServerType == 'automatic')
$('automatic-dns-display').textContent = inetNameServersString;
else
$('automatic-dns-display').textContent = savedNameServersString;
$('google-dns-display').textContent = GoogleNameServersString; $('google-dns-display').textContent = GoogleNameServersString;
var nameServersUser = []; var nameServersUser = [];
......
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