mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
add not-yet-working ui for the encryption prefs; add bookmarks count to the status file
This commit is contained in:
parent
cd9b1836db
commit
2f425c8d59
@ -1233,13 +1233,18 @@ BookmarksSyncService.prototype = {
|
||||
let deltasPut = yield;
|
||||
gen.close();
|
||||
|
||||
let c = 0;
|
||||
for (GUID in this._snapshot)
|
||||
c++;
|
||||
|
||||
gen = this._dav.PUT("bookmarks-status.json",
|
||||
uneval({GUID: this._snapshotGUID,
|
||||
formatVersion: STORAGE_FORMAT_VERSION,
|
||||
snapVersion: server.snapVersion,
|
||||
maxVersion: this._snapshotVersion,
|
||||
snapEncryption: server.snapEncryption,
|
||||
deltasEncryption: this.encryption}), cont);
|
||||
deltasEncryption: this.encryption,
|
||||
bookmarksCount: c}), cont);
|
||||
let statusPut = yield;
|
||||
gen.close();
|
||||
|
||||
@ -1546,13 +1551,18 @@ BookmarksSyncService.prototype = {
|
||||
gen.close();
|
||||
this._checkStatus(resp.status, "Could not upload deltas.");
|
||||
|
||||
let c = 0;
|
||||
for (GUID in this._snapshot)
|
||||
c++;
|
||||
|
||||
gen = this._dav.PUT("bookmarks-status.json",
|
||||
uneval({GUID: this._snapshotGUID,
|
||||
formatVersion: STORAGE_FORMAT_VERSION,
|
||||
snapVersion: this._snapshotVersion,
|
||||
maxVersion: this._snapshotVersion,
|
||||
snapEncryption: this.encryption,
|
||||
deltasEncryption: "none"}), cont);
|
||||
deltasEncryption: "none",
|
||||
bookmarksCount: c}), cont);
|
||||
resp = yield;
|
||||
gen.close();
|
||||
this._checkStatus(resp.status, "Could not upload status file.");
|
||||
|
Loading…
Reference in New Issue
Block a user