| 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 * A utility class for querying information about the current Chrome build. | 8 * A utility class for querying information about the current Chrome build. |
| 9 * Intentionally doesn't depend on native so that the data can be accessed befor
e | 9 * Intentionally doesn't depend on native so that the data can be accessed befor
e |
| 10 * libchrome.so is loaded. | 10 * libchrome.so is loaded. |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 public static boolean isWorkBuild() { | 52 public static boolean isWorkBuild() { |
| 53 return ChromeVersionConstants.CHANNEL == ChromeVersionConstants.CHANNEL_
WORK; | 53 return ChromeVersionConstants.CHANNEL == ChromeVersionConstants.CHANNEL_
WORK; |
| 54 } | 54 } |
| 55 | 55 |
| 56 /** | 56 /** |
| 57 * @return Whether this is an official (i.e. Google Chrome) build. | 57 * @return Whether this is an official (i.e. Google Chrome) build. |
| 58 */ | 58 */ |
| 59 public static boolean isOfficialBuild() { | 59 public static boolean isOfficialBuild() { |
| 60 return ChromeVersionConstants.IS_OFFICIAL_BUILD; | 60 return ChromeVersionConstants.IS_OFFICIAL_BUILD; |
| 61 } | 61 } |
| 62 |
| 63 /** |
| 64 * @return The version number. |
| 65 */ |
| 66 public static String getProductVersion() { |
| 67 return ChromeVersionConstants.PRODUCT_VERSION; |
| 68 } |
| 62 } | 69 } |
| OLD | NEW |