Bug 529077: DirectoryProvider.js cleanup [r=gavin.sharp]
authorMark Finkle <mfinkle@mozilla.com>
Mon, 16 Nov 2009 14:52:20 -0500
changeset 65802 d43572bd48decee9c7198ea64ecbcba2f750a72b
parent 65801 cd23eab8839c47856ff6fb777c53d67a11600bfb
child 65803 c5e80cee51d68671ca12a8ecc497fc55cfb717c4
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgavin
bugs529077
Bug 529077: DirectoryProvider.js cleanup [r=gavin.sharp]
mobile/components/DirectoryProvider.js
--- a/mobile/components/DirectoryProvider.js
+++ b/mobile/components/DirectoryProvider.js
@@ -47,17 +47,17 @@ const NS_APP_CACHE_PARENT_DIR = "cachePD
 
 function DirectoryProvider() {}
 
 DirectoryProvider.prototype = {
   classDescription: "Directory Provider for special browser folders and files",
   contractID: "@mozilla.org/browser/directory-provider;1",
   classID: Components.ID("{ef0f7a87-c1ee-45a8-8d67-26f586e46a4b}"),
   
-  QueryInterface: XPCOMUtils.generateQI([Ci.nsIDirectoryServiceProvider, Ci.nsIDirectoryServiceProvider2]),
+  QueryInterface: XPCOMUtils.generateQI([Ci.nsIDirectoryServiceProvider]),
 
   _xpcom_categories: [
     { category: "xpcom-directory-providers", entry: "browser-directory-provider" }
   ],
 
   getFile: function(prop, persistent) {
     if (prop == NS_APP_CACHE_PARENT_DIR) {
       let dirsvc = Cc["@mozilla.org/file/directory_service;1"].getService(Ci.nsIProperties);
@@ -74,20 +74,16 @@ DirectoryProvider.prototype = {
           let folder = Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsILocalFile);
           folder.initWithPath("/media/mmc2/.mozilla/fennec");
           return folder;
 #endif
         default:
           return profile;
       }
     }
-    return Components.results.NS_ERROR_FAILURE;
-  },
-
-  getFiles: function(prop, persistent) {
-    return Components.results.NS_ERROR_FAILURE;
+    return null;
   }
 };
 
 function NSGetModule(aCompMgr, aFileSpec) {
   return XPCOMUtils.generateModule([DirectoryProvider]);
 }