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

Bug:2968399

Also do not save the form data in incognito mode.

Change-Id: Ice6a1cb3620b5cf272b6b361ce11f8abef269a89
This commit is contained in:
Leon Scroggins
2011-01-10 11:02:00 -05:00
parent 8733bea4c1
commit aa6b9f55d6

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;
}
/**