Elim 'Translated' from Managed ONC dictionary
Instead of providing a 'Translated' value in managed ONC dictionaries,
use a well understood naming convention.
This also moves the onc helper methods to their own JS module.
BUG=279351
For proxy_settings.html:
TBR=xiyuan@chromium.org
Committed: https://crrev.com/53077e70bdcc0b651c297eb4d176edf6a86480a3
Cr-Commit-Position: refs/heads/master@{#293412}
+Ben please take a look at the comment at onc_translator_shill_to_onc.cc:244 Thanks! https://codereview.chromium.org/539573002/diff/40001/chromeos/network/onc/onc_translator_shill_to_onc.cc File chromeos/network/onc/onc_translator_shill_to_onc.cc (right): ...
6 years, 3 months ago
(2014-09-04 12:50:14 UTC)
#5
+Ben
please take a look at the comment at onc_translator_shill_to_onc.cc:244
Thanks!
https://codereview.chromium.org/539573002/diff/40001/chromeos/network/onc/onc...
File chromeos/network/onc/onc_translator_shill_to_onc.cc (right):
https://codereview.chromium.org/539573002/diff/40001/chromeos/network/onc/onc...
chromeos/network/onc/onc_translator_shill_to_onc.cc:244:
shill_dictionary_->GetStringWithoutPathExpansion(
+Ben who ran into this issue before, see this comment in
network_connection_handler.cc:
// TODO(benchan): Modify shill to specify the authentication type via
// the kL2tpIpsecAuthenticationType property, so that Chrome doesn't need
// to deduce the authentication type based on the
// kL2tpIpsecClientCertIdProperty here (and also in VPNConfigView).
Ben, could we fix this for 39?
How would Shill deduce the Authentication Type? or would Shill just report back
what Chrome previously configured?
stevenjb
https://codereview.chromium.org/539573002/diff/40001/chrome/browser/resources/options/chromeos/onc_data.js File chrome/browser/resources/options/chromeos/onc_data.js (right): https://codereview.chromium.org/539573002/diff/40001/chrome/browser/resources/options/chromeos/onc_data.js#newcode1 chrome/browser/resources/options/chromeos/onc_data.js:1: // Copyright (c) 2014 The Chromium Authors. All rights ...
6 years, 3 months ago
(2014-09-04 15:34:11 UTC)
#6
https://codereview.chromium.org/539573002/diff/40001/chrome/browser/resources...
File chrome/browser/resources/options/chromeos/onc_data.js (right):
https://codereview.chromium.org/539573002/diff/40001/chrome/browser/resources...
chrome/browser/resources/options/chromeos/onc_data.js:1: // Copyright (c) 2014
The Chromium Authors. All rights reserved.
On 2014/09/03 21:42:02, armansito wrote:
> nit: I think we omit the "(c)" bit now.
Done.
https://codereview.chromium.org/539573002/diff/40001/chromeos/dbus/fake_shill...
File chromeos/dbus/fake_shill_manager_client.cc (right):
https://codereview.chromium.org/539573002/diff/40001/chromeos/dbus/fake_shill...
chromeos/dbus/fake_shill_manager_client.cc:801:
provider_properties2.SetString(shill::kHostProperty, "vpn_host2");
On 2014/09/03 21:42:02, armansito wrote:
> nit: Add an empty line here for consistency with the previous block.
Done.
https://codereview.chromium.org/539573002/diff/40001/chromeos/dbus/fake_shill...
chromeos/dbus/fake_shill_manager_client.cc:810: }
On 2014/09/03 21:42:03, armansito wrote:
> nit: You already declared |provider_properties| and |provider_properties2|;
are
> the nested scopes necessary?
It's far too easily to accidentally use 'provider_properties' instead of
'provider_properties2'. I guess I could name them better and remove the scoping.
Done.
https://codereview.chromium.org/539573002/diff/40001/chromeos/network/onc/onc...
File chromeos/network/onc/onc_translator_shill_to_onc.cc (right):
https://codereview.chromium.org/539573002/diff/40001/chromeos/network/onc/onc...
chromeos/network/onc/onc_translator_shill_to_onc.cc:244:
shill_dictionary_->GetStringWithoutPathExpansion(
On 2014/09/04 12:50:14, pneubeck wrote:
> +Ben who ran into this issue before, see this comment in
> network_connection_handler.cc:
>
> // TODO(benchan): Modify shill to specify the authentication type via
> // the kL2tpIpsecAuthenticationType property, so that Chrome doesn't
need
> // to deduce the authentication type based on the
> // kL2tpIpsecClientCertIdProperty here (and also in VPNConfigView).
>
> Ben, could we fix this for 39?
> How would Shill deduce the Authentication Type? or would Shill just report
back
> what Chrome previously configured?
I'd rather not block this on a Shill change, we can always fix this later if we
add the property to Shill. Is there anything inherently wrong with this logic
(it's pretty much just copied from internet_options_handler_strings.cc.
stevenjb
6 years, 3 months ago
(2014-09-04 15:35:33 UTC)
#7
armansito
lgtm
6 years, 3 months ago
(2014-09-04 15:38:53 UTC)
#8
lgtm
pneubeck (no reviews)
lgtm with nits https://codereview.chromium.org/539573002/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/539573002/diff/40001/chromeos/network/onc/onc_translator_shill_to_onc.cc#newcode244 chromeos/network/onc/onc_translator_shill_to_onc.cc:244: shill_dictionary_->GetStringWithoutPathExpansion( On 2014/09/04 15:34:11, stevenjb wrote: ...
6 years, 3 months ago
(2014-09-04 18:05:21 UTC)
#9
lgtm with nits
https://codereview.chromium.org/539573002/diff/40001/chromeos/network/onc/onc...
File chromeos/network/onc/onc_translator_shill_to_onc.cc (right):
https://codereview.chromium.org/539573002/diff/40001/chromeos/network/onc/onc...
chromeos/network/onc/onc_translator_shill_to_onc.cc:244:
shill_dictionary_->GetStringWithoutPathExpansion(
On 2014/09/04 15:34:11, stevenjb wrote:
> On 2014/09/04 12:50:14, pneubeck wrote:
> > +Ben who ran into this issue before, see this comment in
> > network_connection_handler.cc:
> >
> > // TODO(benchan): Modify shill to specify the authentication type via
> > // the kL2tpIpsecAuthenticationType property, so that Chrome doesn't
> need
> > // to deduce the authentication type based on the
> > // kL2tpIpsecClientCertIdProperty here (and also in VPNConfigView).
> >
> > Ben, could we fix this for 39?
> > How would Shill deduce the Authentication Type? or would Shill just report
> back
> > what Chrome previously configured?
>
> I'd rather not block this on a Shill change, we can always fix this later if
we
> add the property to Shill. Is there anything inherently wrong with this logic
> (it's pretty much just copied from internet_options_handler_strings.cc.
I didn't intend to suggest blocking this. This should be clarified
independently.
https://codereview.chromium.org/539573002/diff/60001/chrome/browser/resources...
File chrome/browser/resources/options/chromeos/internet_detail.js (left):
https://codereview.chromium.org/539573002/diff/60001/chrome/browser/resources...
chrome/browser/resources/options/chromeos/internet_detail.js:1306:
assert('Cellular' in data,
optional nit: you could probably add this assert where you set the 'type'
member.
https://codereview.chromium.org/539573002/diff/60001/chrome/browser/resources...
File chrome/browser/resources/options/chromeos/onc_data.js (right):
https://codereview.chromium.org/539573002/diff/60001/chrome/browser/resources...
chrome/browser/resources/options/chromeos/onc_data.js:68: // For now, just
uupdate the active value. TODO(stevenjb): Eventually we
typo: uupdate -> update
https://codereview.chromium.org/539573002/diff/60001/chrome/browser/resources...
chrome/browser/resources/options/chromeos/onc_data.js:84: // Otherwise get the
Active value (defalt behavior).
typo: defalt -> default
stevenjb
https://codereview.chromium.org/539573002/diff/60001/chrome/browser/resources/options/chromeos/internet_detail.js File chrome/browser/resources/options/chromeos/internet_detail.js (left): https://codereview.chromium.org/539573002/diff/60001/chrome/browser/resources/options/chromeos/internet_detail.js#oldcode1306 chrome/browser/resources/options/chromeos/internet_detail.js:1306: assert('Cellular' in data, On 2014/09/04 18:05:20, pneubeck wrote: > ...
6 years, 3 months ago
(2014-09-04 19:41:17 UTC)
#10
Issue 539573002: Elim 'Translated' from Managed ONC dictionary
(Closed)
Created 6 years, 3 months ago by stevenjb
Modified 6 years, 3 months ago
Reviewers: pneubeck (no reviews), armansito, Ben Chan
Base URL: https://chromium.googlesource.com/chromium/src.git@master
Comments: 15