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

Issue 10827283: This updates the StaticIP configuration UI to match new mocks. (Closed)

Created:
8 years, 4 months ago by Greg Spencer (Chromium)
Modified:
8 years, 4 months ago
Reviewers:
stevenjb, Dan Beam
CC:
chromium-reviews, arv (Not doing code reviews), oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

This updates the StaticIP configuration UI to match new mocks. Splits out the IP routing parameters (address, netmask, gateway) from the name server parameter, so that we can override just the name servers or the routing parameters, and get the other one from DHCP. Also adds a new widget class: EditableTextField, that allows a static display value when not editable, and an edit field when editable, with the ability to do validation and has a model that can be reverted. This new class is used for the basis of an IP Address input field that does correct IP address validation. Also, the new StaticIP dialog now sets/gets the shill properties for static IP instead of setting IPConfig objects (which isn't supported by shill), which should fix manual static IP configuration. BUG=chromium:129052 TEST=Ran on device and tested StaticIP configuration, ran some unit tests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=151600

Patch Set 1 #

Patch Set 2 : Cleanup for review #

Total comments: 114

Patch Set 3 : Dan Review Changes #

Patch Set 4 : Fix minor nit #

Patch Set 5 : Fixed setDetails return #

Patch Set 6 : Steven review changes #

Total comments: 2

Patch Set 7 : Steven Review Changes #

Total comments: 28

Patch Set 8 : Replace literals in code with constants #

Patch Set 9 : More review changes #

Patch Set 10 : Split out i18n strings from other tags #

Total comments: 2

Patch Set 11 : reverted i18n strings, split out messages #

Patch Set 12 : Fix unit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1752 lines, -634 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +23 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/cros/cros_network_functions.h View 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/cros/cros_network_functions.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +72 lines, -22 lines 0 comments Download
M chrome/browser/chromeos/cros/cros_network_functions_unittest.cc View 1 2 3 4 5 6 1 chunk +89 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/cros/mock_network_library.h View 1 chunk +6 lines, -1 line 0 comments Download
M chrome/browser/chromeos/cros/network_ip_config.h View 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/cros/network_ip_config.cc View 2 chunks +0 lines, -46 lines 0 comments Download
M chrome/browser/chromeos/cros/network_library.h View 2 chunks +25 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/cros/network_library_impl_cros.h View 1 2 3 4 5 3 chunks +32 lines, -16 lines 0 comments Download
M chrome/browser/chromeos/cros/network_library_impl_cros.cc View 1 2 3 4 5 6 3 chunks +163 lines, -89 lines 0 comments Download
M chrome/browser/chromeos/cros/network_library_impl_stub.h View 1 chunk +6 lines, -1 line 0 comments Download
M chrome/browser/chromeos/cros/network_library_impl_stub.cc View 1 chunk +28 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/cros/network_library_unittest.cc View 2 chunks +0 lines, -53 lines 0 comments Download
M chrome/browser/resources/options2/chromeos/internet_detail.css View 1 2 2 chunks +27 lines, -1 line 0 comments Download
M chrome/browser/resources/options2/chromeos/internet_detail.html View 1 2 2 chunks +83 lines, -23 lines 0 comments Download
M chrome/browser/resources/options2/chromeos/internet_detail.js View 1 2 3 4 5 6 7 8 7 chunks +183 lines, -81 lines 0 comments Download
A chrome/browser/resources/options2/chromeos/internet_detail_ip_address_field.js View 1 2 3 4 5 6 7 8 1 chunk +111 lines, -0 lines 0 comments Download
D chrome/browser/resources/options2/chromeos/internet_detail_ip_config_list.js View 1 chunk +0 lines, -106 lines 0 comments Download
A chrome/browser/resources/options2/editable_text_field.js View 1 2 3 4 5 6 7 8 1 chunk +375 lines, -0 lines 0 comments Download
M chrome/browser/resources/options2/inline_editable_list.js View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/resources/options2/options_bundle.js View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/resources/options2/options_page.css View 1 2 2 chunks +48 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options2/chromeos/internet_options_handler.h View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options2/chromeos/internet_options_handler.cc View 1 2 3 4 5 6 7 8 9 10 34 chunks +460 lines, -173 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Greg Spencer (Chromium)
Sorry for the large CL... Steven, I need you to review the C++ changes. Dan, ...
8 years, 4 months ago (2012-08-10 23:23:56 UTC) #1
Dan Beam
http://codereview.chromium.org/10827283/diff/1025/chrome/browser/resources/options2/chromeos/internet_detail.css File chrome/browser/resources/options2/chromeos/internet_detail.css (right): http://codereview.chromium.org/10827283/diff/1025/chrome/browser/resources/options2/chromeos/internet_detail.css#newcode59 chrome/browser/resources/options2/chromeos/internet_detail.css:59: border-top: 1px solid #EEE; nit: I think we tend ...
8 years, 4 months ago (2012-08-11 01:38:02 UTC) #2
stevenjb
http://codereview.chromium.org/10827283/diff/1025/chrome/browser/chromeos/cros/cros_network_functions.cc File chrome/browser/chromeos/cros/cros_network_functions.cc (right): http://codereview.chromium.org/10827283/diff/1025/chrome/browser/chromeos/cros/cros_network_functions.cc#newcode794 chrome/browser/chromeos/cros/cros_network_functions.cc:794: } Nit: this check might make a little more ...
8 years, 4 months ago (2012-08-13 17:43:44 UTC) #3
Greg Spencer (Chromium)
Sorry for all the style nits: this is the first time I've made significant webui ...
8 years, 4 months ago (2012-08-13 19:20:03 UTC) #4
Dan Beam
http://codereview.chromium.org/10827283/diff/1025/chrome/browser/resources/options2/chromeos/internet_detail.js File chrome/browser/resources/options2/chromeos/internet_detail.js (right): http://codereview.chromium.org/10827283/diff/1025/chrome/browser/resources/options2/chromeos/internet_detail.js#newcode614 chrome/browser/resources/options2/chromeos/internet_detail.js:614: $('ip-address').model.value ? $('ip-address').model.value : ''; On 2012/08/13 19:20:04, Greg ...
8 years, 4 months ago (2012-08-13 19:48:55 UTC) #5
Dan Beam
will give this another round of review soon
8 years, 4 months ago (2012-08-13 19:49:27 UTC) #6
Greg Spencer (Chromium)
http://codereview.chromium.org/10827283/diff/1025/chrome/browser/resources/options2/chromeos/internet_detail.js File chrome/browser/resources/options2/chromeos/internet_detail.js (right): http://codereview.chromium.org/10827283/diff/1025/chrome/browser/resources/options2/chromeos/internet_detail.js#newcode614 chrome/browser/resources/options2/chromeos/internet_detail.js:614: $('ip-address').model.value ? $('ip-address').model.value : ''; On 2012/08/13 19:48:55, Dan ...
8 years, 4 months ago (2012-08-13 22:17:44 UTC) #7
Dan Beam
http://codereview.chromium.org/10827283/diff/1025/chrome/browser/resources/options2/chromeos/internet_detail_ip_address_field.js File chrome/browser/resources/options2/chromeos/internet_detail_ip_address_field.js (right): http://codereview.chromium.org/10827283/diff/1025/chrome/browser/resources/options2/chromeos/internet_detail_ip_address_field.js#newcode16 chrome/browser/resources/options2/chromeos/internet_detail_ip_address_field.js:16: var singleIp_ = new RegExp('^\\s*([0-9]+)\\s*\\.\\s*([0-9]+)\\s*\\.' + On 2012/08/13 22:17:44, ...
8 years, 4 months ago (2012-08-13 22:56:17 UTC) #8
Greg Spencer (Chromium)
Addressing Steven's comments. http://codereview.chromium.org/10827283/diff/1025/chrome/browser/chromeos/cros/cros_network_functions.cc File chrome/browser/chromeos/cros/cros_network_functions.cc (right): http://codereview.chromium.org/10827283/diff/1025/chrome/browser/chromeos/cros/cros_network_functions.cc#newcode794 chrome/browser/chromeos/cros/cros_network_functions.cc:794: } On 2012/08/13 17:43:44, stevenjb (chromium) ...
8 years, 4 months ago (2012-08-13 23:53:43 UTC) #9
stevenjb
Thanks for the changes. LGTM (w/ a minor nit) http://codereview.chromium.org/10827283/diff/1025/chrome/browser/ui/webui/options2/chromeos/internet_options_handler.cc File chrome/browser/ui/webui/options2/chromeos/internet_options_handler.cc (right): http://codereview.chromium.org/10827283/diff/1025/chrome/browser/ui/webui/options2/chromeos/internet_options_handler.cc#newcode297 chrome/browser/ui/webui/options2/chromeos/internet_options_handler.cc:297: ...
8 years, 4 months ago (2012-08-14 01:06:38 UTC) #10
Greg Spencer (Chromium)
http://codereview.chromium.org/10827283/diff/1025/chrome/browser/ui/webui/options2/chromeos/internet_options_handler.cc File chrome/browser/ui/webui/options2/chromeos/internet_options_handler.cc (right): http://codereview.chromium.org/10827283/diff/1025/chrome/browser/ui/webui/options2/chromeos/internet_options_handler.cc#newcode297 chrome/browser/ui/webui/options2/chromeos/internet_options_handler.cc:297: ip_info_dict->SetString("address", value); On 2012/08/14 01:06:38, stevenjb (chromium) wrote: > ...
8 years, 4 months ago (2012-08-14 01:19:26 UTC) #11
Dan Beam
chrome/browser/resources/* lgtm w/nits http://codereview.chromium.org/10827283/diff/13003/chrome/browser/resources/options2/chromeos/internet_detail.js File chrome/browser/resources/options2/chromeos/internet_detail.js (right): http://codereview.chromium.org/10827283/diff/13003/chrome/browser/resources/options2/chromeos/internet_detail.js#newcode639 chrome/browser/resources/options2/chromeos/internet_detail.js:639: if (type == 'google') { nit: ...
8 years, 4 months ago (2012-08-14 03:59:56 UTC) #12
Greg Spencer (Chromium)
http://codereview.chromium.org/10827283/diff/13003/chrome/browser/resources/options2/chromeos/internet_detail.js File chrome/browser/resources/options2/chromeos/internet_detail.js (right): http://codereview.chromium.org/10827283/diff/13003/chrome/browser/resources/options2/chromeos/internet_detail.js#newcode639 chrome/browser/resources/options2/chromeos/internet_detail.js:639: if (type == 'google') { On 2012/08/14 03:59:56, Dan ...
8 years, 4 months ago (2012-08-14 16:54:53 UTC) #13
Greg Spencer (Chromium)
On 2012/08/14 01:19:26, Greg Spencer (Chromium) wrote: > OK, I do agree that they *should* ...
8 years, 4 months ago (2012-08-14 17:26:03 UTC) #14
stevenjb
Thanks for doing this, generally I think this is much better. I do however think ...
8 years, 4 months ago (2012-08-14 17:50:00 UTC) #15
Greg Spencer (Chromium)
On 2012/08/14 17:50:00, stevenjb (chromium) wrote: > Thanks for doing this, generally I think this ...
8 years, 4 months ago (2012-08-14 18:01:47 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gspencer@chromium.org/10827283/3011
8 years, 4 months ago (2012-08-14 18:04:16 UTC) #17
stevenjb
Thanks! lgtm
8 years, 4 months ago (2012-08-14 18:05:28 UTC) #18
commit-bot: I haz the power
Try job failure for 10827283-3011 (retry) on linux_chromeos for step "unit_tests". It's a second try, ...
8 years, 4 months ago (2012-08-14 20:40:12 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gspencer@chromium.org/10827283/1033
8 years, 4 months ago (2012-08-14 21:03:17 UTC) #20
commit-bot: I haz the power
8 years, 4 months ago (2012-08-14 23:30:15 UTC) #21
Change committed as 151600

Powered by Google App Engine
This is Rietveld 408576698