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

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

Issue 1927443002: Remove Android Work Chrome code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix missed line. Created 4 years, 7 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
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/init/ChromeBrowserInitializer.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 * 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 29 matching lines...) Expand all
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 || ChromeVersionConstants.CHANNEL == ChromeVersionConstants. CHANNEL_WORK;
47 } 47 }
48 48
49 /** 49 /**
50 * @return Whether this build is a work build.
51 */
52 public static boolean isWorkBuild() {
53 return ChromeVersionConstants.CHANNEL == ChromeVersionConstants.CHANNEL_ WORK;
54 }
55
56 /**
57 * @return Whether this is an official (i.e. Google Chrome) build. 50 * @return Whether this is an official (i.e. Google Chrome) build.
58 */ 51 */
59 public static boolean isOfficialBuild() { 52 public static boolean isOfficialBuild() {
60 return ChromeVersionConstants.IS_OFFICIAL_BUILD; 53 return ChromeVersionConstants.IS_OFFICIAL_BUILD;
61 } 54 }
62 55
63 /** 56 /**
64 * @return The version number. 57 * @return The version number.
65 */ 58 */
66 public static String getProductVersion() { 59 public static String getProductVersion() {
67 return ChromeVersionConstants.PRODUCT_VERSION; 60 return ChromeVersionConstants.PRODUCT_VERSION;
68 } 61 }
69 } 62 }
OLDNEW
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/init/ChromeBrowserInitializer.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698