Bug 1167627 - Part 9: Use mozinfo in services/. r=rnewman

This commit is contained in:
Hiroyuki Ikezoe 2015-10-11 21:50:00 +02:00
parent dd1c422ef6
commit 4d526d411d
2 changed files with 4 additions and 4 deletions

View File

@ -13,9 +13,9 @@ catch(ex) {
// Make sure to provide the right OS so crypto loads the right binaries
var OS = "XPCShell";
if ("@mozilla.org/windows-registry-key;1" in Cc)
if (mozinfo.os == "win")
OS = "WINNT";
else if ("nsILocalFileMac" in Ci)
else if (mozinfo.os == "mac")
OS = "Darwin";
else
OS = "Linux";

View File

@ -19,9 +19,9 @@ Services.prefs.setCharPref("identity.sync.tokenserver.uri", "http://token-server
// Make sure to provide the right OS so crypto loads the right binaries
var OS = "XPCShell";
if ("@mozilla.org/windows-registry-key;1" in Cc)
if (mozinfo.os == "win")
OS = "WINNT";
else if ("nsILocalFileMac" in Ci)
else if (mozinfo.os == "mac")
OS = "Darwin";
else
OS = "Linux";