diff options
-rw-r--r-- | android_webview/native/aw_contents.cc | 7 | ||||
-rw-r--r-- | android_webview/native/aw_contents.h | 2 | ||||
-rw-r--r-- | android_webview/native/aw_http_auth_handler.cc | 3 |
3 files changed, 5 insertions, 7 deletions
diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc index a7ae2e1..479c70d 100644 --- a/android_webview/native/aw_contents.cc +++ b/android_webview/native/aw_contents.cc @@ -654,10 +654,9 @@ void AwContents::PerformLongClick() { Java_AwContents_performLongClick(env, obj.obj()); } -void AwContents::onReceivedHttpAuthRequest( - const JavaRef<jobject>& handler, - const std::string& host, - const std::string& realm) { +void AwContents::OnReceivedHttpAuthRequest(const JavaRef<jobject>& handler, + const std::string& host, + const std::string& realm) { JNIEnv* env = AttachCurrentThread(); ScopedJavaLocalRef<jstring> jhost = ConvertUTF8ToJavaString(env, host); ScopedJavaLocalRef<jstring> jrealm = ConvertUTF8ToJavaString(env, realm); diff --git a/android_webview/native/aw_contents.h b/android_webview/native/aw_contents.h index 798e9c4..8b53026 100644 --- a/android_webview/native/aw_contents.h +++ b/android_webview/native/aw_contents.h @@ -86,7 +86,7 @@ class AwContents : public FindHelper::Listener, // |handler| is an instance of // org.chromium.android_webview.AwHttpAuthHandler. - void onReceivedHttpAuthRequest(const base::android::JavaRef<jobject>& handler, + void OnReceivedHttpAuthRequest(const base::android::JavaRef<jobject>& handler, const std::string& host, const std::string& realm); diff --git a/android_webview/native/aw_http_auth_handler.cc b/android_webview/native/aw_http_auth_handler.cc index b926a6a..2f6a8f7 100644 --- a/android_webview/native/aw_http_auth_handler.cc +++ b/android_webview/native/aw_http_auth_handler.cc @@ -61,8 +61,7 @@ void AwHttpAuthHandler::HandleOnUIThread(content::WebContents* web_contents) { DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); AwContents* aw_contents = AwContents::FromWebContents(web_contents); - aw_contents->onReceivedHttpAuthRequest( - http_auth_handler_, host_, realm_); + aw_contents->OnReceivedHttpAuthRequest(http_auth_handler_, host_, realm_); } // static |