Implement the "Delete Profile" button in the AutoFill editor.

Sync a null profile to BrowserSettings and remove the current
profile data from the editor UI and database.

Change-Id: I9ee911640882841b500914be5c381f686bc20e81
diff --git a/src/com/android/browser/AutoFillProfileDatabase.java b/src/com/android/browser/AutoFillProfileDatabase.java
index 0204d7e..3345e92 100644
--- a/src/com/android/browser/AutoFillProfileDatabase.java
+++ b/src/com/android/browser/AutoFillProfileDatabase.java
@@ -142,6 +142,12 @@
                 null, null, null, "1");
     }
 
+    public void dropProfile(int id) {
+        final String sql = "DELETE FROM " + PROFILES_TABLE_NAME +" WHERE " + Profiles._ID + " = ?;";
+        final Object[] params = { id };
+        getDatabase(true).execSQL(sql, params);
+    }
+
     public void close() {
         mOpenHelper.close();
     }