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

Side by Side Diff: chrome/browser/android/browser_version.cc

Issue 492843003: [Android] Upstream BrowserVersion.java and related native code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address reviewers' comments 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
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 #include "chrome/browser/android/browser_version.h"
6
7 #include "base/android/jni_string.h"
8 #include "chrome/common/chrome_version_info.h"
9 #include "grit/locale_settings.h"
10 #include "jni/BrowserVersion_jni.h"
11 #include "ui/base/l10n/l10n_util.h"
12 #include "ui/base/resource/resource_bundle.h"
Lei Zhang 2014/08/20 21:53:50 nit: not used either.
13
14 using base::android::ConvertUTF8ToJavaString;
15
16 static jboolean IsOfficialBuild(JNIEnv* env, jclass /* clazz */) {
17 return chrome::VersionInfo().IsOfficialBuild();
18 }
19
20 static jstring GetTermsOfServiceHtml(JNIEnv* env, jclass /* clazz */) {
21 return ConvertUTF8ToJavaString(env,
22 l10n_util::GetStringUTF8(IDS_TERMS_HTML)).Release();
23 }
24
25 bool RegisterBrowserVersion(JNIEnv* env) {
26 return RegisterNativesImpl(env);
27 }
OLDNEW
« no previous file with comments | « chrome/browser/android/browser_version.h ('k') | chrome/browser/android/chrome_jni_registrar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698