Description[Android] Simplify "network predictions" preference to a boolean value.
This changes the network predictions preference on Android from a
tri-state (always, only on wifi, never) to a two-state (on, off). The
privacy settings screen now shows a simple checkbox to control this
preference.
"Always" and "only on wifi" are effectively merged into the new "on"
state, which has the same behavior as the old "only on wifi" state:
prefetching and prerendering are allowed only on wifi, while DNS
preresolving and TCP preconnect can happen on all connection types.
Under the hood, the "always" and "only on wifi" states still exist
temporarily, but are treated identically. This change doesn't affect
other platforms, which already use "always" and "only on wifi"
interchangably and show a simple checkbox in the UI.
BUG=585297
Committed: https://crrev.com/1f354ca0573b81547e0921f2a015915a7ccc3dbd
Cr-Commit-Position: refs/heads/master@{#377716}
Patch Set 1 #
Total comments: 8
Patch Set 2 : yusufo's comment #Patch Set 3 : rebased #Patch Set 4 : updated TODO in prediction_options.h #
Total comments: 2
Patch Set 5 : updated tests to test new behavior #Patch Set 6 : Dan's comment #
Total comments: 4
Patch Set 7 : added bug link; rebased #Messages
Total messages: 42 (14 generated)
|