Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2482)

Unified Diff: chrome/browser/resources/settings/internet_page/internet_detail_page.js

Issue 2856023002: MD Settings: Internet: Fix IP config visibility (Closed)
Patch Set: Rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/internet_page/internet_detail_page.js
diff --git a/chrome/browser/resources/settings/internet_page/internet_detail_page.js b/chrome/browser/resources/settings/internet_page/internet_detail_page.js
index a7761fa4bca382e1c033d53b7bc529004e76ff6a..7e84ed7cdf0a63eb1811cd5c40df3c1bc7db023e 100644
--- a/chrome/browser/resources/settings/internet_page/internet_detail_page.js
+++ b/chrome/browser/resources/settings/internet_page/internet_detail_page.js
@@ -244,8 +244,10 @@ Polymer({
// Update the detail page title.
this.parentNode.pageTitle = CrOnc.getNetworkName(this.networkProperties);
- // Focus a button once the initial state is set.
- if (!this.didSetFocus_) {
+ Polymer.dom.flush();
+
+ if (this.didSetFocus_) {
+ // Focus a button once the initial state is set.
this.didSetFocus_ = true;
var button = this.$$('#buttonDiv .primary-button:not([hidden])');
if (!button)
@@ -996,17 +998,6 @@ Polymer({
},
/**
- * @param {!CrOnc.NetworkProperties} networkProperties
- * @return {boolean}
- * @private
- */
- showIpConfig_: function(networkProperties) {
- if (!this.isRememberedOrConnected_(networkProperties))
- return false;
- return !!networkProperties.IPAddressConfigType;
- },
-
- /**
* @param {!Object} curValue
* @param {!Object} newValue
* @return {boolean} True if all properties set in |newValue| are equal to

Powered by Google App Engine
This is Rietveld 408576698