diff options
| author | Grace Kloba <klobag@google.com> | 2009-09-03 16:29:56 -0700 |
|---|---|---|
| committer | Grace Kloba <klobag@google.com> | 2009-09-09 14:56:51 -0700 |
| commit | 6b52a55ecd3b91ca31a0d7111f87a5d7937f215b (patch) | |
| tree | e260a7518cb43e5d471bdf9b9852bfc22d21b1a6 /src/com/android/browser/BrowserProvider.java | |
| parent | 54ba51c47f42ef4c37005fada71c2bda978e8e43 (diff) | |
| download | packages_apps_Browser-6b52a55ecd3b91ca31a0d7111f87a5d7937f215b.tar.gz packages_apps_Browser-6b52a55ecd3b91ca31a0d7111f87a5d7937f215b.tar.bz2 packages_apps_Browser-6b52a55ecd3b91ca31a0d7111f87a5d7937f215b.zip | |
Remove clientid from the url before it is added to the database. So that we
won't show them in the auto-complete list.
Update the browser.db and remove history only entries who has clientid.
Fix http://b/issue?id=2099727
Diffstat (limited to 'src/com/android/browser/BrowserProvider.java')
| -rw-r--r-- | src/com/android/browser/BrowserProvider.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/browser/BrowserProvider.java b/src/com/android/browser/BrowserProvider.java index 75a98b6bf..4db1ebc39 100644 --- a/src/com/android/browser/BrowserProvider.java +++ b/src/com/android/browser/BrowserProvider.java @@ -151,7 +151,8 @@ public class BrowserProvider extends ContentProvider { // 18 -> 19 Remove labels table // 19 -> 20 Added thumbnail // 20 -> 21 Added touch_icon - private static final int DATABASE_VERSION = 21; + // 21 -> 22 Remove "clientid" + private static final int DATABASE_VERSION = 22; // Regular expression which matches http://, followed by some stuff, followed by // optionally a trailing slash, all matched as separate groups. @@ -261,6 +262,9 @@ public class BrowserProvider extends ContentProvider { } if (oldVersion < 21) { db.execSQL("ALTER TABLE bookmarks ADD COLUMN touch_icon BLOB DEFAULT NULL;"); + } + if (oldVersion < 22) { + db.execSQL("DELETE FROM bookmarks WHERE (bookmark = 0 AND url LIKE \"%.google.%client=ms-%\")"); } else { db.execSQL("DROP TABLE IF EXISTS bookmarks"); db.execSQL("DROP TABLE IF EXISTS searches"); |
