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

Side by Side Diff: chrome/browser/ui/android/certificate_viewer_android.cc

Issue 147533004: Remove unneeded JNI registrations. (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Fix android webview build issues. Created 6 years, 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "chrome/browser/certificate_viewer.h" 5 #include "chrome/browser/certificate_viewer.h"
6 6
7 #include "base/android/jni_string.h" 7 #include "base/android/jni_string.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "grit/generated_resources.h" 9 #include "grit/generated_resources.h"
10 #include "jni/CertificateViewer_jni.h" 10 #include "jni/CertificateViewer_jni.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 return ConvertUTF8ToJavaString( 79 return ConvertUTF8ToJavaString(
80 env, l10n_util::GetStringUTF8( 80 env, l10n_util::GetStringUTF8(
81 IDS_CERT_INFO_SHA256_FINGERPRINT_LABEL)).Release(); 81 IDS_CERT_INFO_SHA256_FINGERPRINT_LABEL)).Release();
82 } 82 }
83 83
84 static jstring GetCertSHA1FingerprintText(JNIEnv* env, jclass) { 84 static jstring GetCertSHA1FingerprintText(JNIEnv* env, jclass) {
85 return ConvertUTF8ToJavaString( 85 return ConvertUTF8ToJavaString(
86 env, l10n_util::GetStringUTF8( 86 env, l10n_util::GetStringUTF8(
87 IDS_CERT_INFO_SHA1_FINGERPRINT_LABEL)).Release(); 87 IDS_CERT_INFO_SHA1_FINGERPRINT_LABEL)).Release();
88 } 88 }
89
90 bool RegisterCertificateViewer(JNIEnv* env) {
91 return RegisterNativesImpl(env);
92 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698