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

Issue 1756323002: Do not check ProxyInfo if the the DRP config is not valid (Closed)

Created:
4 years, 9 months ago by tbansal1
Modified:
4 years, 9 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Do not check ProxyInfo if the the DRP config is not valid A previous CL (https://codereview.chromium.org/1702253002) made a change and called result->proxy_server() without checking if DRP config is valid. This caused Chrome to crash because if config is not valid, calling result- >proxy_server() may cause crashes (because there may not be any proxy server in result). This CL reverts back to behavior before that CL. Before result->proxy_server() is called, it is ensured that the DRP config must be valid. BUG=591356 Committed: https://crrev.com/50eb58711b04bd731486974488e46546bf45b0bb Cr-Commit-Position: refs/heads/master@{#379048}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Simplified the logic #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -5 lines) Patch
M components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate_unittest.cc View 2 chunks +2 lines, -3 lines 0 comments Download

Messages

Total messages: 22 (12 generated)
tbansal1
kundaji, ryansturm: PTAL. Thanks!
4 years, 9 months ago (2016-03-02 21:57:48 UTC) #6
RyanSturm
https://codereview.chromium.org/1756323002/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc (right): https://codereview.chromium.org/1756323002/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc#newcode122 components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc:122: if (!data_reduction_proxy_config.is_valid() && It looks like you are recording ...
4 years, 9 months ago (2016-03-02 23:39:17 UTC) #7
tbansal1
ptal. thanks. https://codereview.chromium.org/1756323002/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc (right): https://codereview.chromium.org/1756323002/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc#newcode122 components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc:122: if (!data_reduction_proxy_config.is_valid() && On 2016/03/02 23:39:17, RyanSturm ...
4 years, 9 months ago (2016-03-03 00:03:19 UTC) #8
RyanSturm
On 2016/03/03 00:03:19, tbansal1 wrote: > ptal. thanks. > > https://codereview.chromium.org/1756323002/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc > File > components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc ...
4 years, 9 months ago (2016-03-03 17:36:54 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1756323002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1756323002/20001
4 years, 9 months ago (2016-03-03 17:56:23 UTC) #11
tbansal1
sclittle: ptal. thanks.
4 years, 9 months ago (2016-03-03 17:59:43 UTC) #14
Not at Google. Contact bengr
lgtm
4 years, 9 months ago (2016-03-03 18:30:39 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1756323002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1756323002/20001
4 years, 9 months ago (2016-03-03 18:53:01 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-03 18:58:46 UTC) #20
commit-bot: I haz the power
4 years, 9 months ago (2016-03-03 18:59:56 UTC) #22
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/50eb58711b04bd731486974488e46546bf45b0bb
Cr-Commit-Position: refs/heads/master@{#379048}

Powered by Google App Engine
This is Rietveld 408576698