Diff for /chimera/BookmarksService.mm between versions 1.2 and 1.3

version 1.2, 2002/02/09 01:24:11 version 1.3, 2002/02/09 01:25:26
Line 244  BookmarksService::BookmarksService() Line 244  BookmarksService::BookmarksService()
           
     nsCOMPtr<nsIURI> uri;      nsCOMPtr<nsIURI> uri;
     NS_NewURI(getter_AddRefs(uri), bookmarksFileURL.get());      NS_NewURI(getter_AddRefs(uri), bookmarksFileURL.get());
      
    nsCOMPtr<nsIXMLHttpRequest> req(do_CreateInstance(NS_XMLHTTPREQUEST_CONTRACTID));    nsCOMPtr<nsIXBLService> xblService(do_GetService("@mozilla.org/xbl;1"));    
    req->OpenRequest("GET", bookmarksFileURL.get(), PR_FALSE, nsnull, nsnull); 
    req->Send(nsnull); 
    nsCOMPtr<nsIDOMDocument> doc; 
    req->GetResponseXML(getter_AddRefs(doc)); 
    if (!doc) 
        printf("OH NO!\n"); 
         
    nsCOMPtr<nsIXBLService> xblService(do_GetService("@mozilla.org/xbl;1")); 
     
     xblService->FetchSyncXMLDocument(uri, getter_AddRefs(mBookmarks));      xblService->FetchSyncXMLDocument(uri, getter_AddRefs(mBookmarks));
           
     nsCOMPtr<nsIContent> rootNode;      nsCOMPtr<nsIContent> rootNode;
     GetRootContent(getter_AddRefs(rootNode));      GetRootContent(getter_AddRefs(rootNode));
       
     if (!rootNode)  
         printf("OH SHIT\n");  
           
     StripWhitespaceNodes(rootNode);      StripWhitespaceNodes(rootNode);
 }  }
   

Removed from v.1.2  
changed lines
  Added in v.1.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>