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

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

Issue 492843003: [Android] Upstream BrowserVersion.java and related native code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove an unused import Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/android/browser_version.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package org.chromium.chrome.browser;
6
7 /**
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.
10 */
11 public class BrowserVersion {
12 /**
13 * Check if the browser was built as an "official" build.
14 */
15 public static boolean isOfficialBuild() {
16 return nativeIsOfficialBuild();
17 }
18
19 /**
20 * Only native code can see the OFFICIAL_BUILD flag; check it from there. T his function is
21 * not handled by initialize() and is not available early in startup (before the native
22 * library has loaded). Calling it before that point will result in an exce ption.
23 */
24 private static native boolean nativeIsOfficialBuild();
25
26 /**
27 * Get the HTML for the terms of service to be displayed at first run.
28 */
29 public static String getTermsOfServiceHtml() {
30 return nativeGetTermsOfServiceHtml();
31 }
32
33 /**
34 * The terms of service are a native resource.
35 */
36 private static native String nativeGetTermsOfServiceHtml();
37 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/browser_version.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698