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

Unified Diff: android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java

Issue 2366023002: Add WebViewDatabaseAdapter#{get,set}HttpAuthUsernamePassword (Closed)
Patch Set: Fixing errors Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java
diff --git a/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java b/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java
index 4a3892673442c2b9ec08979ddb21ba8d4649b45a..c4d9fa8981e4015879ff09445fb6feb9bb70b787 100644
--- a/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java
+++ b/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java
@@ -373,7 +373,8 @@ class WebViewChromium implements WebViewProvider, WebViewProvider.ScrollDelegate
});
return;
}
- mAwContents.setHttpAuthUsernamePassword(host, realm, username, password);
+ ((WebViewDatabaseAdapter) mFactory.getWebViewDatabase(mContext))
sgurun-gerrit only 2016/09/24 01:40:41 why is casting necessary here?
+ .setHttpAuthUsernamePassword(host, realm, username, password);
}
@Override
@@ -388,7 +389,8 @@ class WebViewChromium implements WebViewProvider, WebViewProvider.ScrollDelegate
});
return ret;
}
- return mAwContents.getHttpAuthUsernamePassword(host, realm);
+ return ((WebViewDatabaseAdapter) mFactory.getWebViewDatabase(mContext))
+ .getHttpAuthUsernamePassword(host, realm);
}
@Override

Powered by Google App Engine
This is Rietveld 408576698