Bug 450668: Add support for livemarks to distribution.ini. r=gavin, a=ss
git-svn-id: svn://10.0.0.236/trunk@253824 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
2d7d66fa55
commit
2c3a44a639
@ -76,6 +76,14 @@ DistributionCustomizer.prototype = {
|
||||
return this.__annoSvc;
|
||||
},
|
||||
|
||||
__livemarkSvc: null,
|
||||
get _livemarkSvc() {
|
||||
if (!this.__livemarkSvc)
|
||||
this.__livemarkSvc = Cc["@mozilla.org/browser/livemark-service;2"].
|
||||
getService(Ci.nsILivemarkService);
|
||||
return this.__livemarkSvc;
|
||||
},
|
||||
|
||||
__dirSvc: null,
|
||||
get _dirSvc() {
|
||||
if (!this.__dirSvc)
|
||||
@ -179,6 +187,18 @@ DistributionCustomizer.prototype = {
|
||||
this._bmSvc.insertSeparator(parentId, index);
|
||||
break;
|
||||
|
||||
case "livemark":
|
||||
if (iid < defaultItemId)
|
||||
index = prependIndex++;
|
||||
|
||||
newId = this._livemarkSvc.
|
||||
createLivemark(parentId,
|
||||
items[iid]["title"],
|
||||
this._makeURI(items[iid]["siteLink"]),
|
||||
this._makeURI(items[iid]["feedLink"]),
|
||||
index);
|
||||
break;
|
||||
|
||||
case "bookmark":
|
||||
default:
|
||||
if (iid < defaultItemId)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user