Cronet has a way to set a JSON string as experimental options. In addition to log what this JSON string is, we can error out or show a warning on experimental options that are not recognized.
This will make debugging easier as it's less likely for the native and client Java code to not be in sync.
I think error out in *debug* maybe ok, but in release we should at most warn, as it is expected that experimental options could change or even go away over time.
I ended up adding some warnings and dumping the "effective" experimental options to NetLog: https://codereview.chromium.org/2738813004/
It's cool that we will also get other NetLog tabs for free.
Deleted:
Screenshot from 2017-03-08 14:58:03.png
41.2 KB
Comment 1 by mef@chromium.org
, Mar 8 2017