diff --git a/services/sync/locales/en-US/fennec.properties b/services/sync/locales/en-US/fennec.properties index 51c90e0723c4..cbd1e9abac7e 100644 --- a/services/sync/locales/en-US/fennec.properties +++ b/services/sync/locales/en-US/fennec.properties @@ -5,7 +5,6 @@ fennec.turned-off = Weave is turned off. fennec.login.error = Weave had an error when trying to log in. fennec.login.error.detail = Login error: %S -fennec.default.client.name = Fennec fennec.default.client.type = Mobile fennec.sync.complete.time = Sync completed at %S, %S diff --git a/services/sync/modules/engines/clients.js b/services/sync/modules/engines/clients.js index ee8c2ec52594..818a0e4ee579 100644 --- a/services/sync/modules/engines/clients.js +++ b/services/sync/modules/engines/clients.js @@ -116,7 +116,7 @@ ClientEngine.prototype = { Svc.Prefs.reset("client.syncID"); }, - get clientName() { return Svc.Prefs.get("client.name", "Firefox"); }, + get clientName() { return Svc.Prefs.get("client.name", Svc.AppInfo.name); }, set clientName(value) { Svc.Prefs.set("client.name", value); }, get clientType() { return Svc.Prefs.get("client.type", "desktop"); }, diff --git a/services/sync/modules/util.js b/services/sync/modules/util.js index 950a3bf3419d..5ca840c89c6c 100644 --- a/services/sync/modules/util.js +++ b/services/sync/modules/util.js @@ -632,7 +632,8 @@ Utils.EventListener.prototype = { let Svc = {}; Svc.Prefs = new Preferences(PREFS_BRANCH); -[["Crypto", "@labs.mozilla.com/Weave/Crypto;1", "IWeaveCrypto"], +[["AppInfo", "@mozilla.org/xre/app-info;1", "nsIXULAppInfo"], + ["Crypto", "@labs.mozilla.com/Weave/Crypto;1", "IWeaveCrypto"], ["Directory", "@mozilla.org/file/directory_service;1", "nsIProperties"], ["IO", "@mozilla.org/network/io-service;1", "nsIIOService"], ["Login", "@mozilla.org/login-manager;1", "nsILoginManager"],