Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(536)

Issue 2922663002: Data Reduction Proxy: Remove duplicate functions (Closed)

Created:
3 years, 6 months ago by tbansal1
Modified:
3 years, 6 months ago
Reviewers:
lazyboy, megjablon
CC:
chromium-reviews, cbentzel+watch_chromium.org, tbansal+watch-data-reduction-proxy_chromium.org, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Data Reduction Proxy: Remove duplicate functions Data Reduction Proxy (DRP): Remove duplicate functions for checking if promo/holdback is allowed from DataReductionProxyConfigValues. The corresponding flags which were used by these methods have also been removed. Also, remove the enum TestDataReductionProxyParams::HasNames which is only used in testing, and is not testing any production code. BUG=729053, 729054 TBR=lazyboy@chromium.org Review-Url: https://codereview.chromium.org/2922663002 Cr-Commit-Position: refs/heads/master@{#477164} Committed: https://chromium.googlesource.com/chromium/src/+/fbf8bb28d6cf83c4055ad5d85010a7c5f8a50251

Patch Set 1 : ps #

Total comments: 4

Patch Set 2 : megjablon comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -327 lines) Patch
M chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc View 2 chunks +1 line, -17 lines 0 comments Download
M chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest_android.cc View 1 2 chunks +3 lines, -13 lines 0 comments Download
M chrome/browser/renderer_context_menu/render_view_context_menu_unittest.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_config.h View 1 chunk +0 lines, -4 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_config.cc View 2 chunks +1 line, -7 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.h View 2 chunks +1 line, -4 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.cc View 2 chunks +3 lines, -7 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_config_unittest.cc View 10 chunks +19 lines, -33 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor_unittest.cc View 2 chunks +0 lines, -3 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h View 1 chunk +2 lines, -5 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc View 2 chunks +1 line, -2 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_metrics_unittest.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_mutable_config_values.h View 2 chunks +0 lines, -4 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_mutable_config_values.cc View 2 chunks +1 line, -13 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_mutable_config_values_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options_unittest.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h View 1 3 chunks +0 lines, -13 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc View 1 3 chunks +0 lines, -7 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_test_utils.h View 2 chunks +4 lines, -10 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_test_utils.cc View 1 4 chunks +3 lines, -14 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h View 2 chunks +0 lines, -8 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc View 3 chunks +2 lines, -17 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_config_values.h View 1 chunk +0 lines, -9 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_params.h View 4 chunks +8 lines, -22 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc View 5 chunks +29 lines, -28 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_params_test_utils.h View 2 chunks +1 line, -15 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_params_test_utils.cc View 2 chunks +5 lines, -17 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_params_unittest.cc View 6 chunks +9 lines, -39 lines 0 comments Download

Messages

Total messages: 59 (47 generated)
tbansal1
megjablon: ptal. Thanks.
3 years, 6 months ago (2017-06-02 16:44:36 UTC) #16
megjablon
Thanks so much for doing this! This is awesome cleanup. https://codereview.chromium.org/2922663002/diff/100001/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc (right): https://codereview.chromium.org/2922663002/diff/100001/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc#newcode81 ...
3 years, 6 months ago (2017-06-02 23:01:50 UTC) #29
tbansal1
megjablon: ptal. Thanks. https://codereview.chromium.org/2922663002/diff/100001/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc (right): https://codereview.chromium.org/2922663002/diff/100001/components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc#newcode81 components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc:81: void DataReductionProxySettings::UpdateConfigValues() { On 2017/06/02 23:01:50, ...
3 years, 6 months ago (2017-06-05 13:48:24 UTC) #39
megjablon
lgtm
3 years, 6 months ago (2017-06-05 20:58:05 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2922663002/140001
3 years, 6 months ago (2017-06-05 21:16:25 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/455988)
3 years, 6 months ago (2017-06-05 21:28:11 UTC) #44
tbansal1
TBR'ing lazyboy@chromium.org for chrome/browser/renderer_context_menu/render_view_context_menu_unittest.cc since this is a simple mechanical change.
3 years, 6 months ago (2017-06-05 21:31:00 UTC) #46
tbansal1
3 years, 6 months ago (2017-06-05 21:31:30 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2922663002/140001
3 years, 6 months ago (2017-06-05 21:32:36 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2922663002/140001
3 years, 6 months ago (2017-06-05 23:29:58 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2922663002/140001
3 years, 6 months ago (2017-06-05 23:31:36 UTC) #56
commit-bot: I haz the power
3 years, 6 months ago (2017-06-06 03:02:17 UTC) #59
Message was sent while issue was closed.
Committed patchset #2 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/fbf8bb28d6cf83c4055ad5d85010...

Powered by Google App Engine
This is Rietveld 408576698