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

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

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/Version.template
diff --git a/components/cronet/android/java/src/org/chromium/net/Version.template b/components/cronet/android/java/src/org/chromium/net/Version.template
new file mode 100644
index 0000000000000000000000000000000000000000..0bf32dbdf30ed05ba53ef600d65276e2b65c5373
--- /dev/null
+++ b/components/cronet/android/java/src/org/chromium/net/Version.template
@@ -0,0 +1,15 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package org.chromium.net;
+
+// Version based on chrome/VERSION.
+public class Version {
+ public static final String CRONET_VERSION = "@MAJOR@.@MINOR@.@BUILD@.@PATCH@";
+ public static final String LAST_CHANGE = "@LASTCHANGE@";
+
+ public static String getVersion() {
+ return CRONET_VERSION + "@" + LAST_CHANGE;
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698