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

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

Issue 344793006: Generate Cronet Version.java based on VERSION and LASTCHANGE files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Matt's comments. Created 6 years, 6 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/UrlRequestContext.java
diff --git a/components/cronet/android/java/src/org/chromium/net/UrlRequestContext.java b/components/cronet/android/java/src/org/chromium/net/UrlRequestContext.java
index 8396f2a248fcd82981f3d84651c000a020b335f1..d5a86bc46c0bc68aa7be0cbe33cac290601f05ac 100644
--- a/components/cronet/android/java/src/org/chromium/net/UrlRequestContext.java
+++ b/components/cronet/android/java/src/org/chromium/net/UrlRequestContext.java
@@ -46,10 +46,10 @@ public class UrlRequestContext {
/**
* Returns the version of this network stack formatted as N.N.N.N/X where
- * N.N.N.N is the version of Chromium and X is the version of the JNI layer.
+ * N.N.N.N is the version of Chromium and X is the revision number.
*/
public static String getVersion() {
- return nativeGetVersion();
+ return Version.getVersion();
}
/**
@@ -119,8 +119,6 @@ public class UrlRequestContext {
return loggingLevel;
}
- private static native String nativeGetVersion();
-
// Returns an instance URLRequestContextPeer to be stored in
// mUrlRequestContextPeer.
private native long nativeCreateRequestContextPeer(Context context,

Powered by Google App Engine
This is Rietveld 408576698