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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/BrowserVersion.java

Issue 623403002: Generate ChromeVersionConstants.java at build time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed android_aosp Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.browser; 5 package org.chromium.chrome.browser;
6 6
7 /** 7 /**
8 * TODO(nileshagrawal): Rename this class to something more appropriate. 8 * TODO(nileshagrawal): Rename this class to something more appropriate.
9 * Provides a way for java code to determine whether Chrome was built as an offi cial build. 9 * Provides a way for java code to determine whether Chrome was built as an offi cial build.
10 */ 10 */
11 public class BrowserVersion { 11 public class BrowserVersion {
12 /** 12 /**
13 * Check if the browser was built as an "official" build. 13 * Check if the browser was built as an "official" build.
14 * 14 *
15 * This function depends on the native library being loaded; calling it befo re then will crash. 15 * This function depends on the native library being loaded; calling it befo re then will crash.
16 */ 16 */
17 public static boolean isOfficialBuild() { 17 public static boolean isOfficialBuild() {
18 return nativeIsOfficialBuild(); 18 return ChromeVersionConstants.IS_OFFICIAL_BUILD;
19 } 19 }
20
21 private static native boolean nativeIsOfficialBuild();
22 } 20 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698