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

Issue 1057473003: Remove BooleanPrefMember usage from Data Reduction Proxy IO classes. (Closed)

Created:
5 years, 8 months ago by jeremyim
Modified:
5 years, 8 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove BooleanPrefMember usage from Data Reduction Proxy IO classes. The UI objects (specifically DataReductionProxySettings) already creates a BooleanPrefMember for kDataReductionProxyEnabled and checks for changes on it, then propagates this information to DataReductionProxyIOData via DataReductionProxyIOData::SetProxyPrefs. It also negates the need to pass a BooleanPrefMember to BypassStats when ultimately all we care about is the boolean value. BUG=472290 Committed: https://crrev.com/a0ad227fe2d8630e34c1bc7c752957b2666c01ff Cr-Commit-Position: refs/heads/master@{#327138}

Patch Set 1 : Rebase #

Total comments: 8

Patch Set 2 : Rebase #

Patch Set 3 : bengr CR comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -81 lines) Patch
M android_webview/browser/aw_browser_context.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc View 1 2 2 chunks +8 lines, -2 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.h View 3 chunks +2 lines, -3 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.cc View 3 chunks +3 lines, -4 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h View 1 2 3 chunks +8 lines, -13 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc View 1 2 6 chunks +6 lines, -21 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data_unittest.cc View 1 2 2 chunks +2 lines, -5 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h View 3 chunks +0 lines, -9 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc View 5 chunks +4 lines, -10 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc View 3 chunks +3 lines, -8 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc View 1 2 3 chunks +5 lines, -4 lines 1 comment Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_params.h View 1 chunk +4 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc View 2 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 16 (4 generated)
jeremyim
PTAL. =)
5 years, 8 months ago (2015-04-22 23:19:25 UTC) #2
bengr
https://codereview.chromium.org/1057473003/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc (right): https://codereview.chromium.org/1057473003/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc#newcode156 components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc:156: enabled_ = enabled; Can this be part of the ...
5 years, 8 months ago (2015-04-27 16:00:07 UTC) #4
jeremyim
https://codereview.chromium.org/1057473003/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc (right): https://codereview.chromium.org/1057473003/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc#newcode156 components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc:156: enabled_ = enabled; On 2015/04/27 16:00:07, bengr wrote: > ...
5 years, 8 months ago (2015-04-27 16:27:02 UTC) #5
bengr
https://codereview.chromium.org/1057473003/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc (right): https://codereview.chromium.org/1057473003/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc#newcode156 components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc:156: enabled_ = enabled; On 2015/04/27 16:27:02, jeremyim wrote: > ...
5 years, 8 months ago (2015-04-27 16:28:22 UTC) #6
jeremyim
https://codereview.chromium.org/1057473003/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc (right): https://codereview.chromium.org/1057473003/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc#newcode156 components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc:156: enabled_ = enabled; On 2015/04/27 16:28:21, bengr wrote: > ...
5 years, 8 months ago (2015-04-27 20:00:55 UTC) #7
bengr
lgtm with nit https://codereview.chromium.org/1057473003/diff/60001/components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc (right): https://codereview.chromium.org/1057473003/diff/60001/components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc#newcode196 components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc:196: enabled_ = enabled; Why not call ...
5 years, 8 months ago (2015-04-27 20:04:50 UTC) #8
jeremyim
sgurun => Please review changes in aw_browser_context.cc Thanks!
5 years, 8 months ago (2015-04-27 20:07:10 UTC) #10
sgurun-gerrit only
On 2015/04/27 20:07:10, jeremyim wrote: > sgurun => Please review changes in aw_browser_context.cc > > ...
5 years, 8 months ago (2015-04-27 20:23:11 UTC) #11
jeremyim
On 2015/04/27 20:23:11, sgurun wrote: > On 2015/04/27 20:07:10, jeremyim wrote: > > sgurun => ...
5 years, 8 months ago (2015-04-27 20:44:39 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1057473003/60001
5 years, 8 months ago (2015-04-27 20:44:56 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:60001)
5 years, 8 months ago (2015-04-27 21:38:34 UTC) #15
commit-bot: I haz the power
5 years, 8 months ago (2015-04-27 21:39:43 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a0ad227fe2d8630e34c1bc7c752957b2666c01ff
Cr-Commit-Position: refs/heads/master@{#327138}

Powered by Google App Engine
This is Rietveld 408576698