Chromium Code Reviews| Index: android_webview/glue/java/src/com/android/webview/chromium/WebViewDatabaseAdapter.java |
| diff --git a/android_webview/glue/java/src/com/android/webview/chromium/WebViewDatabaseAdapter.java b/android_webview/glue/java/src/com/android/webview/chromium/WebViewDatabaseAdapter.java |
| index 945fb68b11f059fb5fbcba267934b7e90f53f1e7..53996a6744eab0eff9862ac0d3864a77cb257cc6 100644 |
| --- a/android_webview/glue/java/src/com/android/webview/chromium/WebViewDatabaseAdapter.java |
| +++ b/android_webview/glue/java/src/com/android/webview/chromium/WebViewDatabaseAdapter.java |
| @@ -67,6 +67,34 @@ final class WebViewDatabaseAdapter extends WebViewDatabase { |
| mHttpAuthDatabase.clearHttpAuthUsernamePassword(); |
| } |
| + // TODO(ntfschr): add @Override once this is added in Android (http://crbug.com/616583) |
| + public void setHttpAuthUsernamePassword( |
| + final String host, final String realm, final String username, final String password) { |
| + if (checkNeedsPost()) { |
| + mFactory.addTask(new Runnable() { |
| + @Override |
| + public void run() { |
| + mHttpAuthDatabase.setHttpAuthUsernamePassword(host, realm, username, password); |
| + } |
| + }); |
| + return; |
| + } |
| + mHttpAuthDatabase.setHttpAuthUsernamePassword(host, realm, username, password); |
| + } |
| + |
| + // TODO(ntfschr): add @Override once this is added in Android (http://crbug.com/616583) |
|
sgurun-gerrit only
2016/09/23 23:26:47
Note that this can only happen after releasing the
Nate Fischer
2016/09/23 23:29:44
I'll update that to be more explicit.
|
| + public String[] getHttpAuthUsernamePassword(final String host, final String realm) { |
| + if (checkNeedsPost()) { |
| + return mFactory.runOnUiThreadBlocking(new Callable<String[]>() { |
| + @Override |
| + public String[] call() { |
| + return mHttpAuthDatabase.getHttpAuthUsernamePassword(host, realm); |
| + } |
| + }); |
| + } |
| + return mHttpAuthDatabase.getHttpAuthUsernamePassword(host, realm); |
| + } |
| + |
| @Override |
| public boolean hasFormData() { |
| if (checkNeedsPost()) { |