| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|\
| |
| |
| | |
Change-Id: I5dbf9446b7d4409ec843ee800c82ec06bda7c8db
|
| |
| |
| |
| |
| |
| | |
This makes sure that streams are closed in corner cases.
Change-Id: I185c0dbddc09338de3a63eab22c57afb8d1a9c1a
|
|/
|
|
| |
Change-Id: Ifc005e14e8b7ac921ffa1a56a46c5c4083b4ea2d
|
|
|
|
|
|
|
| |
DEBUG=false now, and so we emit only one-line activity summaries during backup
and restore.
Change-Id: Iffca70f60581672ce686429db0a4382d934de663
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
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.
|