| 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 24 matching lines...) Expand all Loading... |
| 35 * @return Whether this build is a beta build. | 35 * @return Whether this build is a beta build. |
| 36 */ | 36 */ |
| 37 public static boolean isBetaBuild() { | 37 public static boolean isBetaBuild() { |
| 38 return ChromeVersionConstants.CHANNEL == ChromeVersionConstants.CHANNEL_
BETA; | 38 return ChromeVersionConstants.CHANNEL == ChromeVersionConstants.CHANNEL_
BETA; |
| 39 } | 39 } |
| 40 | 40 |
| 41 /** | 41 /** |
| 42 * @return Whether this build is a stable build. | 42 * @return Whether this build is a stable build. |
| 43 */ | 43 */ |
| 44 public static boolean isStableBuild() { | 44 public static boolean isStableBuild() { |
| 45 return ChromeVersionConstants.CHANNEL == ChromeVersionConstants.CHANNEL_
STABLE; | 45 return ChromeVersionConstants.CHANNEL == ChromeVersionConstants.CHANNEL_
STABLE |
| 46 || ChromeVersionConstants.CHANNEL == ChromeVersionConstants.
CHANNEL_WORK; |
| 46 } | 47 } |
| 47 | 48 |
| 48 /** | 49 /** |
| 49 * @return Whether this is an official (i.e. Google Chrome) build. | 50 * @return Whether this is an official (i.e. Google Chrome) build. |
| 50 */ | 51 */ |
| 51 public static boolean isOfficialBuild() { | 52 public static boolean isOfficialBuild() { |
| 52 return ChromeVersionConstants.IS_OFFICIAL_BUILD; | 53 return ChromeVersionConstants.IS_OFFICIAL_BUILD; |
| 53 } | 54 } |
| 54 } | 55 } |
| OLD | NEW |