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

Issue 2037683003: 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@2743
Target Ref:
refs/pending/branch-heads/2743
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 TBR=pauljensen@chromium.org NOTRY=true NOPRESUBMIT=true Review-Url: https://codereview.chromium.org/2030933002 Cr-Commit-Position: refs/heads/master@{#397450} (cherry picked from commit 7130ccb5f2fa407a7dd54e221744978475d8b64e)

Patch Set 1 #

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 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: 11 (5 generated)
xunjieli
Paul, FYI. This is to merge into M52. I will CQ it once I confirm ...
4 years, 6 months ago (2016-06-02 17:27:06 UTC) #1
xunjieli
On 2016/06/02 17:27:06, xunjieli wrote: > Paul, FYI. This is to merge into M52. I ...
4 years, 6 months ago (2016-06-02 17:33:50 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2037683003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2037683003/1
4 years, 6 months ago (2016-06-02 17:34:17 UTC) #4
commit-bot: I haz the power
CLs for remote refs other than refs/pending/heads/master must contain NOTRY=true and NOPRESUBMIT=true in order for ...
4 years, 6 months ago (2016-06-02 17:34:19 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2037683003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2037683003/1
4 years, 6 months ago (2016-06-02 17:35:45 UTC) #9
commit-bot: I haz the power
4 years, 6 months ago (2016-06-02 17:37:44 UTC) #11
Message was sent while issue was closed.
Committed patchset #1 (id:1)

Powered by Google App Engine
This is Rietveld 408576698