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

Issue 402953004: Correctly translate Cellular Device properties to ONC (Closed)

Created:
6 years, 5 months ago by stevenjb
Modified:
6 years, 5 months ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, oshima+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Correctly translate Cellular Device properties to ONC This fixes how we translate the Device properties to ONC instead of just copying the Shill properties. BUG=279351 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285642

Patch Set 1 #

Patch Set 2 : Fix signature #

Total comments: 2

Patch Set 3 : Fix APNList and FoundNetworks #

Total comments: 8

Patch Set 4 : Restore cellular_with_state signature, add nested ShillToONCTranslator constructor, update tests #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -64 lines) Patch
M chromeos/network/onc/onc_signature.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chromeos/network/onc/onc_signature.cc View 1 2 3 6 chunks +34 lines, -8 lines 0 comments Download
M chromeos/network/onc/onc_translation_tables.cc View 1 2 3 5 chunks +24 lines, -4 lines 0 comments Download
M chromeos/network/onc/onc_translator_shill_to_onc.cc View 1 2 3 4 chunks +40 lines, -25 lines 2 comments Download
M chromeos/test/data/network/shill_cellular_with_state.json View 1 2 3 1 chunk +27 lines, -22 lines 0 comments Download
M chromeos/test/data/network/translation_of_shill_cellular_with_state.onc View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M components/onc/onc_constants.h View 1 2 3 2 chunks +15 lines, -2 lines 0 comments Download
M components/onc/onc_constants.cc View 1 2 3 2 chunks +16 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
stevenjb
When I added the Device properties to the Shill -> ONC translation, I really didn't ...
6 years, 5 months ago (2014-07-18 20:52:58 UTC) #1
armansito
https://codereview.chromium.org/402953004/diff/20001/chromeos/network/onc/onc_translator_shill_to_onc.cc File chromeos/network/onc/onc_translator_shill_to_onc.cc (right): https://codereview.chromium.org/402953004/diff/20001/chromeos/network/onc/onc_translator_shill_to_onc.cc#newcode289 chromeos/network/onc/onc_translator_shill_to_onc.cc:289: TranslateAndAddNestedObject(::onc::cellular::kSIMLockStatus, *dictionary); I wonder if we should just place ...
6 years, 5 months ago (2014-07-18 21:21:52 UTC) #2
stevenjb
Note, I found some related translation cleanup that I will do in this CL also, ...
6 years, 5 months ago (2014-07-18 21:31:50 UTC) #3
armansito
On 2014/07/18 21:31:50, stevenjb wrote: > Note, I found some related translation cleanup that I ...
6 years, 5 months ago (2014-07-18 21:37:23 UTC) #4
stevenjb
OK, added fixes for APN and FoundNetworks. I am definitely planning to wait on Philipp ...
6 years, 5 months ago (2014-07-18 21:43:40 UTC) #5
pneubeck (no reviews)
On 2014/07/18 21:37:23, armansito wrote: > On 2014/07/18 21:31:50, stevenjb wrote: > > Note, I ...
6 years, 5 months ago (2014-07-21 08:12:50 UTC) #6
pneubeck (no reviews)
On 2014/07/18 21:31:50, stevenjb wrote: > Note, I found some related translation cleanup that I ...
6 years, 5 months ago (2014-07-21 08:20:18 UTC) #7
pneubeck (no reviews)
I like this code much better than the old one. It's more consistent with the ...
6 years, 5 months ago (2014-07-21 08:21:53 UTC) #8
pneubeck (no reviews)
Oh. But now I remember why we had all these properties in the Cellular signature: ...
6 years, 5 months ago (2014-07-21 08:25:55 UTC) #9
pneubeck (no reviews)
https://codereview.chromium.org/402953004/diff/40001/chromeos/network/onc/onc_translator_shill_to_onc.cc File chromeos/network/onc/onc_translator_shill_to_onc.cc (right): https://codereview.chromium.org/402953004/diff/40001/chromeos/network/onc/onc_translator_shill_to_onc.cc#newcode272 chromeos/network/onc/onc_translator_shill_to_onc.cc:272: kCellularDeviceSignature); how about using kCellularWithStateSignature here again but additionally ...
6 years, 5 months ago (2014-07-21 08:31:05 UTC) #10
stevenjb
On 2014/07/21 08:25:55, pneubeck wrote: > Oh. But now I remember why we had all ...
6 years, 5 months ago (2014-07-22 18:29:18 UTC) #11
stevenjb
https://codereview.chromium.org/402953004/diff/40001/chromeos/network/onc/onc_signature.cc File chromeos/network/onc/onc_signature.cc (right): https://codereview.chromium.org/402953004/diff/40001/chromeos/network/onc/onc_signature.cc#newcode264 chromeos/network/onc/onc_signature.cc:264: { ::onc::cellular::kAPNList, &kCellularApnListSignature}, On 2014/07/21 08:21:53, pneubeck wrote: > ...
6 years, 5 months ago (2014-07-22 18:29:33 UTC) #12
pneubeck (no reviews)
On 2014/07/22 18:29:18, stevenjb wrote: > On 2014/07/21 08:25:55, pneubeck wrote: > > Oh. But ...
6 years, 5 months ago (2014-07-22 18:43:00 UTC) #13
armansito
On 2014/07/21 08:12:50, pneubeck wrote: > On 2014/07/18 21:37:23, armansito wrote: > > On 2014/07/18 ...
6 years, 5 months ago (2014-07-22 21:39:36 UTC) #14
stevenjb
OK, I *think* this is better. Also added more tests, although it turns out we ...
6 years, 5 months ago (2014-07-24 22:24:33 UTC) #15
pneubeck (no reviews)
lgtm https://codereview.chromium.org/402953004/diff/60001/chromeos/network/onc/onc_translator_shill_to_onc.cc File chromeos/network/onc/onc_translator_shill_to_onc.cc (right): https://codereview.chromium.org/402953004/diff/60001/chromeos/network/onc/onc_translator_shill_to_onc.cc#newcode144 chromeos/network/onc/onc_translator_shill_to_onc.cc:144: if (field_translation_table_ == kCellularDeviceTable) oh, I didn't foresee ...
6 years, 5 months ago (2014-07-25 08:50:03 UTC) #16
stevenjb
https://codereview.chromium.org/402953004/diff/60001/chromeos/network/onc/onc_translator_shill_to_onc.cc File chromeos/network/onc/onc_translator_shill_to_onc.cc (right): https://codereview.chromium.org/402953004/diff/60001/chromeos/network/onc/onc_translator_shill_to_onc.cc#newcode144 chromeos/network/onc/onc_translator_shill_to_onc.cc:144: if (field_translation_table_ == kCellularDeviceTable) On 2014/07/25 08:50:03, pneubeck wrote: ...
6 years, 5 months ago (2014-07-25 17:00:54 UTC) #17
stevenjb
The CQ bit was checked by stevenjb@chromium.org
6 years, 5 months ago (2014-07-25 17:01:03 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevenjb@chromium.org/402953004/60001
6 years, 5 months ago (2014-07-25 17:02:10 UTC) #19
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_compile_dbg on tryserver.chromium ...
6 years, 5 months ago (2014-07-25 19:04:48 UTC) #20
commit-bot: I haz the power
6 years, 5 months ago (2014-07-25 19:14:34 UTC) #21
Message was sent while issue was closed.
Change committed as 285642

Powered by Google App Engine
This is Rietveld 408576698