diff options
Diffstat (limited to 'src/com/android/browser/provider/BrowserProvider2.java')
-rw-r--r-- | src/com/android/browser/provider/BrowserProvider2.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/com/android/browser/provider/BrowserProvider2.java b/src/com/android/browser/provider/BrowserProvider2.java index a66c333..34a153e 100644 --- a/src/com/android/browser/provider/BrowserProvider2.java +++ b/src/com/android/browser/provider/BrowserProvider2.java @@ -75,6 +75,9 @@ public class BrowserProvider2 extends SQLiteContentProvider { static final Uri LEGACY_AUTHORITY_URI = new Uri.Builder() .authority(LEGACY_AUTHORITY).scheme("content").build(); + public static final Uri DEBUG_ADD_BOOKMARKS_URI = Uri.withAppendedPath( + BrowserContract.AUTHORITY_URI, "debug-add-bookmarks"); + public static interface Thumbnails { public static final Uri CONTENT_URI = Uri.withAppendedPath( BrowserContract.AUTHORITY_URI, "thumbnails"); @@ -149,6 +152,7 @@ public class BrowserProvider2 extends SQLiteContentProvider { static final int THUMBNAILS = 10; static final int THUMBNAILS_ID = 11; static final int OMNIBOX_SUGGESTIONS = 20; + static final int DEBUG_ADD_BOOKMARKS = 30; static final int BOOKMARKS = 1000; static final int BOOKMARKS_ID = 1001; @@ -230,6 +234,9 @@ public class BrowserProvider2 extends SQLiteContentProvider { matcher.addURI(authority, "thumbnails/#", THUMBNAILS_ID); matcher.addURI(authority, "omnibox_suggestions", OMNIBOX_SUGGESTIONS); + // Debug + matcher.addURI(authority, "debug-add-bookmarks", DEBUG_ADD_BOOKMARKS); + // Legacy matcher.addURI(LEGACY_AUTHORITY, "searches", SEARCHES); matcher.addURI(LEGACY_AUTHORITY, "searches/#", SEARCHES_ID); @@ -1482,6 +1489,11 @@ public class BrowserProvider2 extends SQLiteContentProvider { break; } + case DEBUG_ADD_BOOKMARKS: { + mOpenHelper.addDefaultBookmarks(db, FIXED_ID_ROOT); + break; + } + default: { throw new UnsupportedOperationException("Unknown insert URI " + uri); } |