am aa6b9f55: Do not show autofill++ or saved form data in incognito mode.

* commit 'aa6b9f55d60702211dd2d08403c7296347f0bd7d':
  Do not show autofill++ or saved form data in incognito mode.
This commit is contained in:
Leon Scroggins
2011-01-10 08:32:56 -08:00
committed by Android Git Automerger

View File

@@ -657,10 +657,11 @@ public class WebSettings {
}
/**
* Return whether the WebView is saving form data.
* Return whether the WebView is saving form data and displaying prior
* entries/autofill++. Always false in private browsing mode.
*/
public boolean getSaveFormData() {
return mSaveFormData;
return mSaveFormData && !mPrivateBrowsingEnabled;
}
/**