Commit 51a4520c authored by timeless%mac.com's avatar timeless%mac.com
Browse files

Bugzilla Bug 107823 change nsIFile

to use 'Modified' instead of 'Modification'
r=akkana sr=brendan
parent 1c82bd3f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2952,12 +2952,12 @@ nsChromeRegistry::CheckForNewChrome()
  rv = chromeFile->Append(kChromeFileName);
  if (NS_FAILED(rv)) return rv;
  nsInt64 chromeDate;
  (void)chromeFile->GetLastModificationTime(&chromeDate.mValue);
  (void)chromeFile->GetLastModifiedTime(&chromeDate.mValue);

  rv = listFile->AppendRelativePath(kInstalledChromeFileName);
  if (NS_FAILED(rv)) return rv;
  nsInt64 listFileDate;
  (void)listFile->GetLastModificationTime(&listFileDate.mValue);
  (void)listFile->GetLastModifiedTime(&listFileDate.mValue);

  if (listFileDate < chromeDate)
    return NS_OK;
+1 −1
Original line number Diff line number Diff line
@@ -528,7 +528,7 @@ nsHTMLDocument::StartDocumentLoad(const char* aCommand,
      // if we failed to get a last modification date, then we don't
      // want to necessarily fail to create a document for this
      // file. Just don't set the last modified date on it...
      rv = file->GetLastModificationTime(&modDate);
      rv = file->GetLastModifiedTime(&modDate);
      if (NS_SUCCEEDED(rv)) {
        PRExplodedTime prtime;
        char buf[100];
+1 −1
Original line number Diff line number Diff line
@@ -529,7 +529,7 @@ dateModified : function ()
  try
  { 
    var fileInst  = new JSFILE_FilePath(this.mPath); 
    var date = new Date(fileInst.lastModificationTime).toLocaleString();
    var date = new Date(fileInst.lastModifiedTime).toLocaleString();
    retval=date;
  }

+2 −2
Original line number Diff line number Diff line
@@ -187,7 +187,7 @@ class PythonComponentLoader:
        if e_location is None: # No escaped key needed.
            e_location = registry_location
        key = self.registry.addSubtreeRaw(self.xpcom_registry_key, e_location)
        self.registry.setLongLong(key, lastModValueName, nsIFile.lastModificationTime)
        self.registry.setLongLong(key, lastModValueName, nsIFile.lastModifiedTime)
        self.registry.setLongLong(key, fileSizeValueName, nsIFile.fileSize)
    def _hasChanged(self, registry_location, nsIFile):
        if self.registry is None:
@@ -198,7 +198,7 @@ class PythonComponentLoader:
            e_location = registry_location
        try:
            key = self.registry.getSubtreeRaw(self.xpcom_registry_key, e_location)
            if nsIFile.lastModificationTime != self.registry.getLongLong(key, lastModValueName):
            if nsIFile.lastModifiedTime != self.registry.getLongLong(key, lastModValueName):
                return 1
            if nsIFile.fileSize != self.registry.getLongLong(key, fileSizeValueName):
                return 1
+2 −2
Original line number Diff line number Diff line
@@ -289,7 +289,7 @@ nsresult bcJavaComponentLoader::SetRegistryInfo(const char *registryLocation,

    PRInt64 modDate;

    if (NS_FAILED(rv = component->GetLastModificationDate(&modDate)) ||
    if (NS_FAILED(rv = component->GetLastModifiedTime(&modDate)) ||
        NS_FAILED(rv = mRegistry->SetLongLong(key, lastModValueName, &modDate)))
        return rv;

@@ -317,7 +317,7 @@ PRBool bcJavaComponentLoader::HasChanged(const char *registryLocation, nsIFile *
    if (NS_FAILED(mRegistry->GetLongLong(key, lastModValueName, &regTime)))
        return PR_TRUE;
    
    if (NS_FAILED(component->GetLastModificationDate(&lastTime)) || LL_NE(lastTime, regTime))
    if (NS_FAILED(component->GetLastModifiedTime(&lastTime)) || LL_NE(lastTime, regTime))
        return PR_TRUE;

    /* check file size */
Loading