summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/BrowserBackupAgent.java
Commit message (Collapse)AuthorAgeFilesLines
* Updates bookmark backup to use BP2John Reck2011-01-051-125/+25
| | | | | | | | | | Bug: 3094458 This updates bookmark backup/restore to use BrowserProvider2, and also changes it so that it does *not* backup bookmarks anymore. It is now restore-only to essentially import bookmarks from older devices. Chrome sync is intended to take over backup duties. Change-Id: Ie1e9eac22be1fc5db982436928fe37f64606c605
* Beginning work on adding bookmarks with folders.Leon Scroggins III2010-09-221-1/+4
| | | | | | | | | Bug: 2953515 Provides the basic functionality for the AddBookmark page, allowing the user to save the bookmark in a folder of his/her choosing. Change-Id: I170599b723069aaee661dae3fc1a0fb915793906
* Add bookmarks to the current account.Jeff Hamilton2010-09-171-1/+1
| | | | | | | | | Make sure to stuff newly created bookmarks in the currently active account so that they show up in the bookmarks UI and will get synced properly. Change-Id: I5677ddb8480957bc209d79cc41f7df02221ef66d
* merge from open-source masterThe Android Open Source Project2010-05-031-17/+40
|\ | | | | | | Change-Id: I5dbf9446b7d4409ec843ee800c82ec06bda7c8db
| * Fixed FindBugs warnings in BrowserBackupAgent.javaHenrik Baard2010-04-211-17/+40
| | | | | | | | | | | | This makes sure that streams are closed in corner cases. Change-Id: I185c0dbddc09338de3a63eab22c57afb8d1a9c1a
* | Refactor android.backup -> android.app.backupChristopher Tate2010-03-051-3/+3
|/ | | | Change-Id: Ifc005e14e8b7ac921ffa1a56a46c5c4083b4ea2d
* Reduce browser backup agent's amount of loggingChristopher Tate2009-09-291-4/+7
| | | | | | | DEBUG=false now, and so we emit only one-line activity summaries during backup and restore. Change-Id: Iffca70f60581672ce686429db0a4382d934de663
* In the case of a page load error, save a second screenshot in ↵Ben Murdoch2009-09-241-1/+1
| | | | | | onProgressChanged(100) to ensure that we save the substituted error page rather than the previous page that loaded. Also save the thumbnail for the page if the user creates the bookmark through the add bookmark menu or clicking the add bookmark icon on the bookmarks page. Change-Id: Ib2b7692a45290f9ce372968e05cde8f6903e4572
* First real cut of bookmarks backup agentChristopher Tate2009-07-271-47/+134
| | | | | | | | | | | | | | | | | | | The agent now does backup/restore of the bookmarks table. Whether to back up is determined by flattening the bookmark table, CRCing the flattened representation, and comparing the CRC with the previous backup pass's version. If they differ (or if the file size differs), the table is deemed to have changed and we send the flattened file off to the server as a single key. On restore, the bookmark records are read individually from the flattened representation, the existing bookmarks table is queried for a matching URL, and if none exists the bookmark is inserted into the table. Bookmarks.addBookmark() now takes a boolean argument "retainIcon." When false, the implementation will not call into the web icon database. This is necessary during restore because the web icon database is only available from the Browser app's main thread, but restore happens without the app proper being involved. The other call points for addBookmark() have been updated to pass 'true,' i.e. preserving the current behavior.
* Remember to advance the cursorChristopher Tate2009-07-101-0/+2
|
* Skeleton backup agent for BrowserChristopher Tate2009-07-101-0/+206
This is a skeleton backup agent for the Android Browser, intended to back up and restore the bookmarks table from browser.db by extracting the bookmarks table into a flattened file representation on backup, then unflattening and rebuilding the table during restore. It compiles but is completely untested, since the db code to read/write the bookmarks table is not finished. The backup agent has been declared in the Browser manifest, however.