Closed
Bug 1485275
Opened 6 years ago
Closed 6 years ago
Port bug 1484118 - replace XPCOM use of nsTransactionManager
Categories
(Thunderbird :: General, enhancement)
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 63.0
People
(Reporter: jorgk-bmo, Unassigned)
References
Details
Attachments
(2 files, 2 obsolete files)
1.67 KB,
patch
|
masayuki
:
review+
|
Details | Diff | Splinter Review |
6.52 KB,
patch
|
darktrojan
:
review+
|
Details | Diff | Splinter Review |
As per bug 1484118 comment #2 C++ callers can use |new TransactionManager()|.
As per bug 1484118 comment #4 JS callers in Calendar should follow the example in
https://hg.mozilla.org/mozilla-central/rev/58650e51b8b7
Geoff, I'll do the mailnews/ bit, please do the Calendar part.
Flags: needinfo?(geoff)
Reporter | ||
Comment 1•6 years ago
|
||
Masayuki-san, would you mind reviewing this.
Attachment #9003048 -
Flags: review?(masayuki)
Comment 2•6 years ago
|
||
I've called this nsITransactionManagerExtra, only because it made the copy-and-paste easier.
Flags: needinfo?(geoff)
Attachment #9003058 -
Flags: review?(philipp)
Reporter | ||
Comment 3•6 years ago
|
||
Comment on attachment 9003058 [details] [diff] [review]
1485275-transaction-manager-1.diff
Review of attachment 9003058 [details] [diff] [review]:
-----------------------------------------------------------------
Nice, thanks for the quick action!
::: common/src/nsTransactionManagerExtra.cpp
@@ +14,5 @@
> +{
> + NS_ENSURE_ARG_POINTER(aManager);
> + nsCOMPtr<nsITransactionManager> manager = new mozilla::TransactionManager();
> + manager.forget(aManager);
> + return NS_OK;
Nit: Is this excessive indentation from copy/paste?
::: common/src/nsTransactionManagerExtra.h
@@ +10,5 @@
> +{
> +public:
> +
> + NS_DECL_THREADSAFE_ISUPPORTS
> + NS_DECL_NSITRANSACTIONMANAGEREXTRA
And here and below.
Comment 4•6 years ago
|
||
Yes, yes it is.
Comment 5•6 years ago
|
||
Now without extra spaces (and tabs!).
Attachment #9003058 -
Attachment is obsolete: true
Attachment #9003058 -
Flags: review?(philipp)
Attachment #9003067 -
Flags: review?(philipp)
Comment 6•6 years ago
|
||
Comment on attachment 9003048 [details] [diff] [review]
1485275-nsTransactionManager-mailnews.patch
Thanks!
Attachment #9003048 -
Flags: review?(masayuki) → review+
Comment 7•6 years ago
|
||
Comment on attachment 9003067 [details] [diff] [review]
1485275-transaction-manager-2.diff
r+ on the calendar part, Jörg would probably be better suited to review the common/ changes.
Attachment #9003067 -
Flags: review?(philipp)
Attachment #9003067 -
Flags: review?(jorgk)
Attachment #9003067 -
Flags: review+
Reporter | ||
Comment 8•6 years ago
|
||
Comment on attachment 9003067 [details] [diff] [review]
1485275-transaction-manager-2.diff
Review of attachment 9003067 [details] [diff] [review]:
-----------------------------------------------------------------
I assume you obtained this using |mach uuid|. Looks good, r+ with the comments below considered (as MMD would say ;-)).
::: calendar/base/src/calTransactionManager.js
@@ +7,5 @@
> function calTransactionManager() {
> this.wrappedJSObject = this;
> if (!this.transactionManager) {
> this.transactionManager =
> + Components.classes["@mozilla.org/transaction-manager-extra;1"]
Cc. ?
::: common/public/nsITransactionManagerExtra.idl
@@ +4,5 @@
> +
> +#include "nsISupports.idl"
> +#include "nsITransactionManager.idl"
> +
> +interface nsIFile;
Where is that used?
@@ +9,5 @@
> +
> +[scriptable, uuid(d1265f8e-e8ea-482e-9b58-0949cd1d83c0)]
> +interface nsITransactionManagerExtra : nsISupports
> +{
> + nsITransactionManager createTransactionManager();
More white-space.
Attachment #9003067 -
Flags: review?(jorgk) → review+
Reporter | ||
Updated•6 years ago
|
Keywords: leave-open
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/fd4696b16ee2
Port bug 1484118: replace XPCOM use of nsTransactionManager in mailnews/. r=masayuki
Comment 10•6 years ago
|
||
Attachment #9003067 -
Attachment is obsolete: true
Attachment #9003315 -
Flags: review+
Reporter | ||
Updated•6 years ago
|
Keywords: leave-open → checkin-needed
Comment 11•6 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/a8bd1c32fd2d
Port bug 1484118: replace XPCOM use of nsTransactionManager in calendar/. r=philipp,jorgk
Reporter | ||
Updated•6 years ago
|
Target Milestone: --- → Thunderbird 63.0
You need to log in
before you can comment on or make changes to this bug.
Description
•