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

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

Issue 2209993003: Add missing using statements for JNI types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/ui/android/certificate_viewer_android.h" 5 #include "chrome/browser/ui/android/certificate_viewer_android.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 "chrome/grit/generated_resources.h" 9 #include "chrome/grit/generated_resources.h"
10 #include "jni/CertificateViewer_jni.h" 10 #include "jni/CertificateViewer_jni.h"
11 #include "net/cert/x509_certificate.h" 11 #include "net/cert/x509_certificate.h"
12 #include "ui/base/l10n/l10n_util.h" 12 #include "ui/base/l10n/l10n_util.h"
13 13
14 using base::android::ConvertUTF8ToJavaString; 14 using base::android::ConvertUTF8ToJavaString;
15 using base::android::JavaParamRef;
15 using base::android::ScopedJavaLocalRef; 16 using base::android::ScopedJavaLocalRef;
16 17
17 void ShowCertificateViewer(content::WebContents* web_contents, 18 void ShowCertificateViewer(content::WebContents* web_contents,
18 gfx::NativeWindow parent, 19 gfx::NativeWindow parent,
19 net::X509Certificate* cert) { 20 net::X509Certificate* cert) {
20 // For Android, showing the certificate is always handled in Java. 21 // For Android, showing the certificate is always handled in Java.
21 NOTREACHED(); 22 NOTREACHED();
22 } 23 }
23 24
24 static ScopedJavaLocalRef<jstring> GetCertIssuedToText( 25 static ScopedJavaLocalRef<jstring> GetCertIssuedToText(
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 static ScopedJavaLocalRef<jstring> GetCertSHA1FingerprintText( 102 static ScopedJavaLocalRef<jstring> GetCertSHA1FingerprintText(
102 JNIEnv* env, 103 JNIEnv* env,
103 const JavaParamRef<jclass>&) { 104 const JavaParamRef<jclass>&) {
104 return ConvertUTF8ToJavaString( 105 return ConvertUTF8ToJavaString(
105 env, l10n_util::GetStringUTF8(IDS_CERT_INFO_SHA1_FINGERPRINT_LABEL)); 106 env, l10n_util::GetStringUTF8(IDS_CERT_INFO_SHA1_FINGERPRINT_LABEL));
106 } 107 }
107 108
108 bool RegisterCertificateViewer(JNIEnv* env) { 109 bool RegisterCertificateViewer(JNIEnv* env) {
109 return RegisterNativesImpl(env); 110 return RegisterNativesImpl(env);
110 } 111 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/android/bluetooth_chooser_android.cc ('k') | chrome/browser/ui/android/chrome_http_auth_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698