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

Issue 749013003: ONC: Add IPAddressConfigType and NameServersConfigType (Closed)

Created:
6 years ago by stevenjb
Modified:
5 years, 11 months ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ONC: Add IPAddressConfigType and NameServersConfigType This CL introdcues IPAddressConfigType and NameServersConfigType If either of these is set to 'Static', a 'StaticIPConfig' object must be provided and must specify any non-default configuration. If neither is set to 'Static', the StaticIPConfig object will be ignored. Originally uploaded as https://codereview.chromium.org/750313003/ BUG=411289 Committed: https://crrev.com/75a3c1dca4598fd845b9871c56ac867eb9a25447 Cr-Commit-Position: refs/heads/master@{#310325}

Patch Set 1 #

Patch Set 2 : Add NameServersConfigType #

Patch Set 3 : . #

Total comments: 14

Patch Set 4 : Rebase #

Patch Set 5 : Feedback #

Patch Set 6 : A bit more clarification (hopefully) #

Total comments: 4

Patch Set 7 : Alywas use empty dictionary to clear StaticIPConfig properties #

Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -9 lines) Patch
M chromeos/network/onc/onc_merger.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M chromeos/network/onc/onc_normalizer.cc View 1 2 3 4 5 6 1 chunk +13 lines, -0 lines 0 comments Download
M chromeos/network/onc/onc_normalizer_unittest.cc View 1 chunk +17 lines, -0 lines 0 comments Download
M chromeos/network/onc/onc_signature.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chromeos/network/onc/onc_translator_onc_to_shill.cc View 1 2 3 4 5 6 1 chunk +13 lines, -0 lines 0 comments Download
M chromeos/network/onc/onc_translator_shill_to_onc.cc View 1 2 3 4 1 chunk +22 lines, -3 lines 0 comments Download
M chromeos/network/onc/onc_translator_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/network/onc/onc_validator.cc View 1 2 3 2 chunks +20 lines, -0 lines 0 comments Download
M chromeos/test/data/network/augmented_merge.json View 1 1 chunk +6 lines, -1 line 0 comments Download
M chromeos/test/data/network/device_policy.onc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/test/data/network/managed_toplevel1.onc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chromeos/test/data/network/settings_with_normalization.json View 1 chunk +20 lines, -0 lines 0 comments Download
A chromeos/test/data/network/shill_wifi_dhcp.json View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
M chromeos/test/data/network/toplevel_wifi_open.onc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/test/data/network/translation_of_shill_ethernet.onc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chromeos/test/data/network/translation_of_shill_ethernet_with_ipconfig.onc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M chromeos/test/data/network/user.onc View 1 1 chunk +1 line, -0 lines 0 comments Download
A chromeos/test/data/network/wifi_dhcp.onc View 1 2 3 4 5 6 1 chunk +12 lines, -0 lines 0 comments Download
M components/onc/docs/onc_spec.html View 1 2 3 4 5 4 chunks +50 lines, -4 lines 0 comments Download
M components/onc/onc_constants.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M components/onc/onc_constants.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (2 generated)
stevenjb
I think this should do the trick. PTAL.
6 years ago (2014-12-08 22:00:00 UTC) #2
stevenjb
pppping
6 years ago (2014-12-16 18:17:51 UTC) #3
pneubeck (no reviews)
please rebase on my cleanup CL (https://codereview.chromium.org/830133003/) and make the documentation a bit more precise. ...
5 years, 11 months ago (2015-01-04 11:18:01 UTC) #4
stevenjb
Settings is always going to set IPAddress + RoutingPrefix + Gateway together, so for now ...
5 years, 11 months ago (2015-01-05 21:16:19 UTC) #5
pneubeck (no reviews)
lgtm if you decide to go with the current version. https://codereview.chromium.org/749013003/diff/40001/chromeos/network/onc/onc_translator_onc_to_shill.cc File chromeos/network/onc/onc_translator_onc_to_shill.cc (right): https://codereview.chromium.org/749013003/diff/40001/chromeos/network/onc/onc_translator_onc_to_shill.cc#newcode260 ...
5 years, 11 months ago (2015-01-06 10:57:47 UTC) #6
stevenjb
PTAL https://codereview.chromium.org/749013003/diff/40001/chromeos/network/onc/onc_translator_onc_to_shill.cc File chromeos/network/onc/onc_translator_onc_to_shill.cc (right): https://codereview.chromium.org/749013003/diff/40001/chromeos/network/onc/onc_translator_onc_to_shill.cc#newcode260 chromeos/network/onc/onc_translator_onc_to_shill.cc:260: // If both IPAddressConfigType and NameServersConfigType are set ...
5 years, 11 months ago (2015-01-06 17:12:31 UTC) #7
pneubeck (no reviews)
https://codereview.chromium.org/749013003/diff/100001/chromeos/network/onc/onc_normalizer.cc File chromeos/network/onc/onc_normalizer.cc (right): https://codereview.chromium.org/749013003/diff/100001/chromeos/network/onc/onc_normalizer.cc#newcode186 chromeos/network/onc/onc_normalizer.cc:186: ::onc::network_config::kIPConfigTypeStatic)); not critical so i can do that in ...
5 years, 11 months ago (2015-01-07 09:23:48 UTC) #8
stevenjb
PTAL https://codereview.chromium.org/749013003/diff/100001/chromeos/network/onc/onc_normalizer.cc File chromeos/network/onc/onc_normalizer.cc (right): https://codereview.chromium.org/749013003/diff/100001/chromeos/network/onc/onc_normalizer.cc#newcode186 chromeos/network/onc/onc_normalizer.cc:186: ::onc::network_config::kIPConfigTypeStatic)); On 2015/01/07 09:23:48, pneubeck wrote: > not ...
5 years, 11 months ago (2015-01-07 17:28:03 UTC) #9
pneubeck (no reviews)
lgtm!
5 years, 11 months ago (2015-01-07 17:39:52 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/749013003/120001
5 years, 11 months ago (2015-01-07 17:54:50 UTC) #12
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 11 months ago (2015-01-07 19:07:23 UTC) #13
commit-bot: I haz the power
5 years, 11 months ago (2015-01-07 19:09:01 UTC) #14
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/75a3c1dca4598fd845b9871c56ac867eb9a25447
Cr-Commit-Position: refs/heads/master@{#310325}

Powered by Google App Engine
This is Rietveld 408576698