Enable an option to only use the secure Data Reduction Proxy when the secure proxy...
commit2f0a5eba99e3d233b0c2a6a65402a5dbefa5537d
authorjeremyim <jeremyim@chromium.org>
Thu, 14 May 2015 22:39:59 +0000 (14 15:39 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 14 May 2015 22:40:02 +0000 (14 22:40 +0000)
treebbff3c85e4ac082af08b718c95acde1ffa75e845
parent8546cb1249babdd05de341cc30a95bec99253f2c
Enable an option to only use the secure Data Reduction Proxy when the secure proxy check succeeds.

Instead of being optimistic about using the secure proxy (i.e. use it unless
the check fails), flip the logic so that the secure proxy is not used unless
the check succeeds.

BUG=466753

Review URL: https://codereview.chromium.org/1132083004

Cr-Commit-Position: refs/heads/master@{#329961}
12 files changed:
components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc
components/data_reduction_proxy/core/browser/data_reduction_proxy_config.h
components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client_unittest.cc
components/data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.cc
components/data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.h
components/data_reduction_proxy/core/browser/data_reduction_proxy_config_unittest.cc
components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_unittest.cc
components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc
components/data_reduction_proxy/core/common/data_reduction_proxy_params.h
components/data_reduction_proxy/core/common/data_reduction_proxy_switches.cc
components/data_reduction_proxy/core/common/data_reduction_proxy_switches.h
tools/metrics/histograms/histograms.xml