summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorSelim Gurun <sgurun@google.com>2013-04-05 12:05:52 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-04-05 12:05:52 -0700
commit8237dd82bf151cb102a69243f91832be1c1294e4 (patch)
tree26e7cfa597247941e52827b619ec82e1f9026189 /core
parent9d47e7b6d40cc38fb1c638c991312a4217bfa333 (diff)
parent93c39d5d4fe8a31da35f8d1d522acb7b676946af (diff)
downloadframeworks_base-8237dd82bf151cb102a69243f91832be1c1294e4.zip
frameworks_base-8237dd82bf151cb102a69243f91832be1c1294e4.tar.gz
frameworks_base-8237dd82bf151cb102a69243f91832be1c1294e4.tar.bz2
am 93c39d5d: DO NOT MERGE Fix issues during backport
* commit '93c39d5d4fe8a31da35f8d1d522acb7b676946af': DO NOT MERGE Fix issues during backport
Diffstat (limited to 'core')
-rw-r--r--core/java/android/webkit/BrowserFrame.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/java/android/webkit/BrowserFrame.java b/core/java/android/webkit/BrowserFrame.java
index 66c2727..994f0c1 100644
--- a/core/java/android/webkit/BrowserFrame.java
+++ b/core/java/android/webkit/BrowserFrame.java
@@ -75,6 +75,7 @@ class BrowserFrame extends Handler {
private final CallbackProxy mCallbackProxy;
private final WebSettingsClassic mSettings;
private final Context mContext;
+ private final WebViewDatabaseClassic mDatabase;
private final WebViewCore mWebViewCore;
/* package */ boolean mLoadInitFromJava;
private int mLoadType;
@@ -252,6 +253,7 @@ class BrowserFrame extends Handler {
mSettings = settings;
mContext = context;
mCallbackProxy = proxy;
+ mDatabase = WebViewDatabaseClassic.getInstance(appContext);
mWebViewCore = w;
mSearchBox = new SearchBoxImpl(mWebViewCore, mCallbackProxy);
@@ -830,10 +832,9 @@ class BrowserFrame extends Handler {
// the post data (there could be another form on the
// page and that was posted instead.
String postString = new String(postData);
- WebViewDatabaseClassic db = WebViewDatabaseClassic.getInstance(mContext);
if (postString.contains(URLEncoder.encode(username)) &&
postString.contains(URLEncoder.encode(password))) {
- String[] saved = db.getUsernamePassword(schemePlusHost);
+ String[] saved = mDatabase.getUsernamePassword(schemePlusHost);
if (saved != null) {
// null username implies that user has chosen not to
// save password
@@ -841,7 +842,7 @@ class BrowserFrame extends Handler {
// non-null username implies that user has
// chosen to save password, so update the
// recorded password
- db.setUsernamePassword(schemePlusHost, username,
+ mDatabase.setUsernamePassword(schemePlusHost, username,
password);
}
} else {