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

Issue 2817613002: MD Settings: Internet: IP Settings: Only set to static on change (Closed)

Created:
3 years, 8 months ago by stevenjb
Modified:
3 years, 8 months ago
Reviewers:
michaelpg
CC:
chromium-reviews, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-md-ui_chromium.org, dbeam+watch-settings_chromium.org, stevenjb+watch-md-settings_chromium.org, arv+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: Internet: IP Settings: Only set to static on change Currently we set the mode to static before changing any properties. This may result in an invalid configuration that will be rejected, reverting back to automatic. This CL: * Only sets the IPConfig mode to static when a property is changed. * Fixes a case where IP config state was incorrectly sent on page load when networkProperties is incomplete. * Cleans up some functions in internet_detail_page.js to avoid potential dom-if pitfalls when using |this.foo| instead of |foo| inside a bound getter. (Also to improve consistency within the file). BUG=704631 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2817613002 Cr-Commit-Position: refs/heads/master@{#464274} Committed: https://chromium.googlesource.com/chromium/src/+/c8c17a113a396c2080658a9a7d06c30bc8c5dba4

Patch Set 1 #

Patch Set 2 : . #

Total comments: 4

Patch Set 3 : Feedback / elim dead code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -52 lines) Patch
M chrome/browser/resources/settings/internet_page/internet_detail_page.html View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/resources/settings/internet_page/internet_detail_page.js View 1 3 chunks +25 lines, -11 lines 0 comments Download
M chrome/browser/resources/settings/internet_page/network_ip_config.js View 1 2 3 chunks +30 lines, -39 lines 0 comments Download

Messages

Total messages: 13 (7 generated)
stevenjb
3 years, 8 months ago (2017-04-12 16:30:08 UTC) #5
michaelpg
https://codereview.chromium.org/2817613002/diff/20001/chrome/browser/resources/settings/internet_page/network_ip_config.js File chrome/browser/resources/settings/internet_page/network_ip_config.js (right): https://codereview.chromium.org/2817613002/diff/20001/chrome/browser/resources/settings/internet_page/network_ip_config.js#newcode122 chrome/browser/resources/settings/internet_page/network_ip_config.js:122: // Only fire ip-change wehn switching to automatic. Changing ...
3 years, 8 months ago (2017-04-12 23:35:18 UTC) #6
stevenjb
PTAL https://codereview.chromium.org/2817613002/diff/20001/chrome/browser/resources/settings/internet_page/network_ip_config.js File chrome/browser/resources/settings/internet_page/network_ip_config.js (right): https://codereview.chromium.org/2817613002/diff/20001/chrome/browser/resources/settings/internet_page/network_ip_config.js#newcode122 chrome/browser/resources/settings/internet_page/network_ip_config.js:122: // Only fire ip-change wehn switching to automatic. ...
3 years, 8 months ago (2017-04-13 00:04:47 UTC) #7
michaelpg
lgtm
3 years, 8 months ago (2017-04-13 00:49:08 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2817613002/40001
3 years, 8 months ago (2017-04-13 01:01:10 UTC) #10
commit-bot: I haz the power
3 years, 8 months ago (2017-04-13 03:26:35 UTC) #13
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/c8c17a113a396c2080658a9a7d06...

Powered by Google App Engine
This is Rietveld 408576698