add not-yet-working ui for the encryption prefs; add bookmarks count to the status file

This commit is contained in:
thunder@h-125.office.mozilla.org 2007-11-14 16:20:16 -08:00
Родитель cd9b1836db
Коммит 2f425c8d59
1 изменённых файлов: 12 добавлений и 2 удалений

Просмотреть файл

@ -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.");