From f9e1705d4012706664a2bdf63a50b8a784b833dd Mon Sep 17 00:00:00 2001 From: Jonathan Dixon Date: Sun, 25 Aug 2013 19:35:27 -0700 Subject: De-classicify Android Browser part 2 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 --- .../android/browser/AutoFillProfileDatabase.java | 29 ---------------------- 1 file changed, 29 deletions(-) (limited to 'src/com/android/browser/AutoFillProfileDatabase.java') 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, -- cgit v1.2.3