Fix net::GetEffectiveConnectionTypeForName signature to return the result |
||
Issue descriptionnet::GetEffectiveConnectionTypeForName returns the result using a reference argument. This is inconvenient to use as it doesn't allow initialization of const members and needs a temporary variable to get the result. The correct behavior should be to return the result wrapped in base::Optional, which will make it possible to use it as net::GetEffectiveConnectionTypeForName(ect_name).value_or(default_ect).
,
Aug 11 2017
|
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Aug 10 2017