| Index: android_webview/native/aw_http_auth_handler.cc
|
| diff --git a/android_webview/native/aw_http_auth_handler.cc b/android_webview/native/aw_http_auth_handler.cc
|
| index 8bcebbaa28075fcf2b70f2890ea49a07b7f60e67..5ff4df989d51b9216c65202d7515859c5f77020c 100644
|
| --- a/android_webview/native/aw_http_auth_handler.cc
|
| +++ b/android_webview/native/aw_http_auth_handler.cc
|
| @@ -41,7 +41,7 @@ void AwHttpAuthHandler::Proceed(JNIEnv* env,
|
| jstring user,
|
| jstring password) {
|
| DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
|
| - if (login_delegate_) {
|
| + if (login_delegate_.get()) {
|
| login_delegate_->Proceed(ConvertJavaStringToUTF16(env, user),
|
| ConvertJavaStringToUTF16(env, password));
|
| login_delegate_ = NULL;
|
| @@ -50,7 +50,7 @@ void AwHttpAuthHandler::Proceed(JNIEnv* env,
|
|
|
| void AwHttpAuthHandler::Cancel(JNIEnv* env, jobject obj) {
|
| DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
|
| - if (login_delegate_) {
|
| + if (login_delegate_.get()) {
|
| login_delegate_->Cancel();
|
| login_delegate_ = NULL;
|
| }
|
|
|