summaryrefslogtreecommitdiff
path: root/src/com/android/browser/AutoFillProfileDatabase.java
diff options
context:
space:
mode:
authorJonathan Dixon <joth@google.com>2013-08-25 19:35:27 -0700
committerJonathan Dixon <joth@google.com>2013-08-25 20:07:02 -0700
commitf9e1705d4012706664a2bdf63a50b8a784b833dd (patch)
tree9cf92ff971c6cd8124391da966f208db2f588baa /src/com/android/browser/AutoFillProfileDatabase.java
parent56b5495f6761d5800918682a5b6bdd282019f14b (diff)
downloadBrowser-f9e1705d4012706664a2bdf63a50b8a784b833dd.tar.gz
De-classicify Android Browser part 2android-4.4_r0.7
Bug: 10427705 Allows Browser to compile even when WebViewClassic is no longer in frameworks/base. The deleted functionality was already disabled at runtime when using non-classic webview. Change-Id: I21b58ec52ac059c699b49a2dd80008d9a9e6791a
Diffstat (limited to 'src/com/android/browser/AutoFillProfileDatabase.java')
-rw-r--r--src/com/android/browser/AutoFillProfileDatabase.java29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/com/android/browser/AutoFillProfileDatabase.java b/src/com/android/browser/AutoFillProfileDatabase.java
index 96669268..3bd9dac6 100644
--- a/src/com/android/browser/AutoFillProfileDatabase.java
+++ b/src/com/android/browser/AutoFillProfileDatabase.java
@@ -22,7 +22,6 @@ import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.provider.BaseColumns;
import android.util.Log;
-import android.webkit.WebSettingsClassic.AutoFillProfile;
public class AutoFillProfileDatabase {
@@ -95,34 +94,6 @@ public class AutoFillProfileDatabase {
return writable ? mOpenHelper.getWritableDatabase() : mOpenHelper.getReadableDatabase();
}
- public void addOrUpdateProfile(final int id, AutoFillProfile profile) {
- final String sql = "INSERT OR REPLACE INTO " + PROFILES_TABLE_NAME + " ("
- + Profiles._ID + ","
- + Profiles.FULL_NAME + ","
- + Profiles.EMAIL_ADDRESS + ","
- + Profiles.COMPANY_NAME + ","
- + Profiles.ADDRESS_LINE_1 + ","
- + Profiles.ADDRESS_LINE_2 + ","
- + Profiles.CITY + ","
- + Profiles.STATE + ","
- + Profiles.ZIP_CODE + ","
- + Profiles.COUNTRY + ","
- + Profiles.PHONE_NUMBER
- + ") VALUES (?,?,?,?,?,?,?,?,?,?,?);";
- final Object[] params = { id,
- profile.getFullName(),
- profile.getEmailAddress(),
- profile.getCompanyName(),
- profile.getAddressLine1(),
- profile.getAddressLine2(),
- profile.getCity(),
- profile.getState(),
- profile.getZipCode(),
- profile.getCountry(),
- profile.getPhoneNumber() };
- getDatabase(true).execSQL(sql, params);
- }
-
public Cursor getProfile(int id) {
final String[] cols = {
Profiles.FULL_NAME,