Bug 707150 - Enable local bookmarks/history database (r=blassey, a=akeybl)
authorLucas Rocha <lucasr@mozilla.com>
Mon, 16 Jan 2012 14:13:40 +0000
changeset 84911 54a65a5101424f2eecfa1b2bb6088775479af2fb
parent 84910 15bbd03602a46223d1d0b43232216519dfc8f7ce
child 84912 d59b0dbcef0f6c37da0e2806b3f5f41ea4a92ed6
push id519
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 00:38:35 +0000
treeherdermozilla-beta@788ea1ef610b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersblassey, akeybl
bugs707150
milestone11.0a2
Bug 707150 - Enable local bookmarks/history database (r=blassey, a=akeybl)
mobile/android/base/db/BrowserDB.java
--- a/mobile/android/base/db/BrowserDB.java
+++ b/mobile/android/base/db/BrowserDB.java
@@ -78,19 +78,18 @@ public class BrowserDB {
         public BitmapDrawable getFaviconForUrl(ContentResolver cr, String uri);
 
         public void updateFaviconForUrl(ContentResolver cr, String uri, BitmapDrawable favicon);
 
         public void updateThumbnailForUrl(ContentResolver cr, String uri, BitmapDrawable thumbnail);
     }
 
     static {
-        // FIXME: Still need to figure out how to use local or android
-        // database here.
-        sDb = new AndroidBrowserDB();
+        // Forcing local DB no option to switch to Android DB for now
+        sDb = new LocalBrowserDB(BrowserContract.DEFAULT_PROFILE);
     }
 
     public static Cursor filter(ContentResolver cr, CharSequence constraint, int limit, CharSequence urlFilter) {
         return sDb.filter(cr, constraint, limit, urlFilter);
     }
 
     public static Cursor filter(ContentResolver cr, CharSequence constraint, int limit) {
         return sDb.filter(cr, constraint, limit, null);