Closed Bug 601715 Opened 14 years ago Closed 13 years ago

Cleanup of migration code

Categories

(SeaMonkey :: General, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED
seamonkey2.1final

People

(Reporter: bugzilla, Assigned: ewong)

References

Details

Attachments

(1 file, 1 obsolete file)

https://bugzilla.mozilla.org/show_bug.cgi?id=601347#c3 mentioned some places in the code that need a cleanup.
{{
Serge Gautherie (:sgautherie)      2010-10-03 07:54:46 PDT

Nits, while here again:

1)
Bug 525513 comment 10:
"can you put the return NS_ERROR_FAILURE; on its own line"?

2)
http://mxr.mozilla.org/comm-central/search?string=GetSourceProfile&case=1&find=%2Fmigration%2F.*%5C.cpp%24
http://mxr.mozilla.org/comm-central/source/suite/profile/migration/src/nsSeamonkeyProfileMigrator.cpp#94
{
153   if (!mSourceProfile) {
154     GetSourceProfile(aProfile);
155     if (!mSourceProfile)
156       return NS_ERROR_FILE_NOT_FOUND;
}
Could you s/NS_ERROR_FAILURE/NS_ERROR_FILE_NOT_FOUND/g?
(Or the other way round, but use the same error everywhere.)

Thanks.
}}
Blocks: 525513
Blocks: 601347
No longer depends on: 601347
Assignee: nobody → ewong
Status: NEW → ASSIGNED
Attached patch Cleaned up migration code. (v1) (obsolete) — Splinter Review
Attachment #520501 - Flags: review?(bugzilla)
(In reply to comment #2)
> Created attachment 520501 [details] [diff] [review]
> Cleaned up migration code. (v1)

This seems a Thunderbird specific patch, did you mean to include it here? (I'd really like Thunderbird related patches to be in Thunderbird product, or mailnews core if we can associate them there).
Attachment #520501 - Attachment is obsolete: true
Attachment #524181 - Flags: review?(bugzilla)
Attachment #520501 - Flags: review?(bugzilla)
Attachment #524181 - Flags: review?(bugzilla)
Attachment #524181 - Flags: review?(eagle.lu)
Attachment #524181 - Flags: review?(eagle.lu) → review?(bugzilla)
Comment on attachment 524181 [details] [diff] [review]
Cleaned up migration code. (v2)

Ok, thanks for the SM patch, this in principle looks fine, but I'm not going to have time to test it in SM, so I'm going to redirect review on this.
Attachment #524181 - Flags: review?(bugzilla) → review?(neil)
Attachment #524181 - Flags: review?(neil) → review+
Keywords: checkin-needed
Pushed:
http://hg.mozilla.org/comm-central/rev/2801b5ea8e04
http://hg.mozilla.org/releases/comm-2.0/rev/a94acd5abd0d
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → seamonkey2.1final
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: