OLD | NEW |
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 } |
OLD | NEW |