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

Unified Diff: components/cronet/android/java/src/org/chromium/net/urlconnection/CronetHttpURLStreamHandler.java

Issue 876123002: [Cronet] Make CronetHttpURLStreamHandler.openConnection public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Unsupported protocol Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/cronet/android/java/src/org/chromium/net/urlconnection/CronetHttpURLStreamHandler.java
diff --git a/components/cronet/android/java/src/org/chromium/net/urlconnection/CronetHttpURLStreamHandler.java b/components/cronet/android/java/src/org/chromium/net/urlconnection/CronetHttpURLStreamHandler.java
index f1e3b592c48b35e00bdb4cb79c7e6f506c3a34cf..02b521ac2cd9cf6a0edcddf690c3ead3435bebc6 100644
--- a/components/cronet/android/java/src/org/chromium/net/urlconnection/CronetHttpURLStreamHandler.java
+++ b/components/cronet/android/java/src/org/chromium/net/urlconnection/CronetHttpURLStreamHandler.java
@@ -26,7 +26,7 @@ public class CronetHttpURLStreamHandler extends URLStreamHandler {
* Establishes a new connection to the resource specified by the URL url.
*/
@Override
- protected URLConnection openConnection(URL url) throws IOException {
+ public URLConnection openConnection(URL url) throws IOException {
String protocol = url.getProtocol();
if ("http".equals(protocol) || "https".equals(protocol)) {
return new CronetHttpURLConnection(url, mUrlRequestContext);
@@ -40,7 +40,7 @@ public class CronetHttpURLStreamHandler extends URLStreamHandler {
* using the given proxy.
*/
@Override
- protected URLConnection openConnection(URL url, Proxy proxy) {
+ public URLConnection openConnection(URL url, Proxy proxy) {
throw new UnsupportedOperationException();
}
}
« no previous file with comments | « no previous file | components/cronet/android/test/javatests/src/org/chromium/cronet_test_apk/urlconnection/CronetHttpURLStreamHandlerTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698