Closed
Bug 427853
Opened 17 years ago
Closed 17 years ago
Define nsIAbManager::getDirectory
Categories
(MailNews Core :: Address Book, defect)
MailNews Core
Address Book
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: standard8, Assigned: standard8)
Details
Attachments
(1 file, 1 obsolete file)
9.88 KB,
patch
|
neil
:
review+
neil
:
superreview+
|
Details | Diff | Splinter Review |
As part of the refactoring, I now want to define nsIAbManager::getDirectory, for now this will enable us to "hide" the GetResource that the rdf service uses.
This patch defines the function, taking the URI of the rdf resource (as that is currently the only identifier we have), and uses it in all the unit tests.
I'll do actual code usages in a separate bug as I know there's at least one patch that should be coming soon that I'll bitrot if I do the code changes now.
Attachment #314408 -
Flags: superreview?(neil)
Attachment #314408 -
Flags: review?(neil)
Assignee | ||
Comment 1•17 years ago
|
||
New version to incorporate test_mailList1.js that I checked in earlier today.
Attachment #314408 -
Attachment is obsolete: true
Attachment #314601 -
Flags: superreview?(neil)
Attachment #314601 -
Flags: review?(neil)
Attachment #314408 -
Flags: superreview?(neil)
Attachment #314408 -
Flags: review?(neil)
Comment 2•17 years ago
|
||
Comment on attachment 314601 [details] [diff] [review]
The fix v2
>+ nsCOMPtr<nsIRDFResource> parentResource;
>+ rv = rdfService->GetResource(aURI,
>+ getter_AddRefs(parentResource));
>+ NS_ENSURE_SUCCESS(rv, rv);
What's it the parent of? Perhaps just call it dirResource?
>+ nsCOMPtr<nsIAbDirectory> dir(do_QueryInterface(parentResource, &rv));
>+ NS_ENSURE_SUCCESS(rv, rv);
>+
>+ dir.swap(*aResult);
>+ return NS_OK;
return CallQueryInterface(dirResource, aResult);
Attachment #314601 -
Flags: superreview?(neil)
Attachment #314601 -
Flags: superreview+
Attachment #314601 -
Flags: review?(neil)
Attachment #314601 -
Flags: review+
Assignee | ||
Comment 3•17 years ago
|
||
Patch checked in with requested changes. Fixed.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Comment 4•17 years ago
|
||
Responsible for increasing trace_malloc_leaks count on Linux nye Dep bloat?
Assignee | ||
Comment 5•17 years ago
|
||
(In reply to comment #4)
> Responsible for increasing trace_malloc_leaks count on Linux nye Dep bloat?
>
Highly unlikely considering this code isn't actually called anywhere within the app yet (only called from unit tests so far).
Flags: in-testsuite+
Updated•16 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•