Bug 1221505 - Remove osfile.jsm dependency from TelemetrySession.jsm. r=dexter

This commit is contained in:
simplyblue 2015-11-17 16:55:47 +05:30
parent 6b78ae1d62
commit f54f20f1f6

View File

@ -12,7 +12,6 @@ const Cu = Components.utils;
Cu.import("resource://gre/modules/debug.js", this);
Cu.import("resource://gre/modules/Log.jsm");
Cu.import("resource://gre/modules/osfile.jsm", this);
Cu.import("resource://gre/modules/Services.jsm", this);
Cu.import("resource://gre/modules/XPCOMUtils.jsm", this);
Cu.import("resource://gre/modules/Promise.jsm", this);
@ -1840,9 +1839,7 @@ var Impl = {
* If not provided, a new payload is gathered.
*/
_saveAbortedSessionPing: function(aProvidedPayload = null) {
const FILE_PATH = OS.Path.join(OS.Constants.Path.profileDir, DATAREPORTING_DIRECTORY,
ABORTED_SESSION_FILE_NAME);
this._log.trace("_saveAbortedSessionPing - ping path: " + FILE_PATH);
this._log.trace("_saveAbortedSessionPing");
let payload = null;
if (aProvidedPayload) {