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

Issue 2030933002: Make CronetHttpURLConnection#setConnectTimeout silently fail (Closed)

Created:
4 years, 6 months ago by xunjieli
Modified:
4 years, 6 months ago
Reviewers:
pauljensen
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

Make CronetHttpURLConnection#setConnectTimeout silently fail This CL makes setConnectTimeout to fail silently so we don't crash applications when this method is called. The goal of Cronet's HttpURLConnection impl is to facilitate applications to try out Cronet. In order to do so, we would like it to be as easy as possible to drop in Cronet's HttpURLConnection impl without hitting any exceptions. We should only reserve the use of exceptions when absolutely necessary (e.g. in matters of correctness), but not for issues of sub-optimality (e.g. HTTP cache being ignored). BUG=611851 Committed: https://crrev.com/7130ccb5f2fa407a7dd54e221744978475d8b64e Cr-Commit-Position: refs/heads/master@{#397450}

Patch Set 1 #

Total comments: 5

Patch Set 2 : use Log.e #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -8 lines) Patch
M components/cronet/android/java/src/org/chromium/net/urlconnection/CronetHttpURLConnection.java View 1 2 chunks +2 lines, -2 lines 0 comments Download
M components/cronet/android/test/javatests/src/org/chromium/net/urlconnection/CronetHttpURLConnectionTest.java View 1 chunk +6 lines, -6 lines 0 comments Download

Messages

Total messages: 16 (8 generated)
xunjieli
Paul, PTAL. Thanks! https://codereview.chromium.org/2030933002/diff/1/components/cronet/android/java/src/org/chromium/net/urlconnection/CronetHttpURLConnection.java File components/cronet/android/java/src/org/chromium/net/urlconnection/CronetHttpURLConnection.java (right): https://codereview.chromium.org/2030933002/diff/1/components/cronet/android/java/src/org/chromium/net/urlconnection/CronetHttpURLConnection.java#newcode37 components/cronet/android/java/src/org/chromium/net/urlconnection/CronetHttpURLConnection.java:37: private static final String TAG = ...
4 years, 6 months ago (2016-06-02 13:27:36 UTC) #2
pauljensen
lgtm, you might want to provide some motivation in the CL description. Making things silently ...
4 years, 6 months ago (2016-06-02 14:12:56 UTC) #3
xunjieli
Thanks for the review! I have also adjusted the CL description. https://codereview.chromium.org/2030933002/diff/1/components/cronet/android/java/src/org/chromium/net/urlconnection/CronetHttpURLConnection.java File components/cronet/android/java/src/org/chromium/net/urlconnection/CronetHttpURLConnection.java (right): ...
4 years, 6 months ago (2016-06-02 14:24:17 UTC) #6
pauljensen
nit: you could expand the CL description even further: Replace "absolutely necessary." with: absolutely necessary ...
4 years, 6 months ago (2016-06-02 14:56:54 UTC) #7
xunjieli
> Replace "absolutely necessary." with: > absolutely necessary (e.g. in matters of correctness), but > ...
4 years, 6 months ago (2016-06-02 16:20:09 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2030933002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2030933002/20001
4 years, 6 months ago (2016-06-02 16:20:40 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-06-02 16:59:32 UTC) #14
commit-bot: I haz the power
4 years, 6 months ago (2016-06-02 17:01:25 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/7130ccb5f2fa407a7dd54e221744978475d8b64e
Cr-Commit-Position: refs/heads/master@{#397450}

Powered by Google App Engine
This is Rietveld 408576698