diff options
author | Matt A. Tobin <email@mattatobin.com> | 2019-11-12 20:13:48 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2019-11-12 20:13:48 -0500 |
commit | 0850a45e096e4b9ddb22891b53d2a964d928a658 (patch) | |
tree | 5f3f670f0515137484349d16c1b254e06297db4a /mailnews | |
parent | ccb634f6da92c6f8dd1c0c0dcf06b1043f5a1103 (diff) | |
download | aura-central-0850a45e096e4b9ddb22891b53d2a964d928a658.tar.gz |
Issue mcp-graveyard/UXP%1258 - Follow up to Part 8: Ifdef MailNews OAuth2 Support
Diffstat (limited to 'mailnews')
-rw-r--r-- | mailnews/imap/src/nsImapProtocol.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mailnews/imap/src/nsImapProtocol.cpp b/mailnews/imap/src/nsImapProtocol.cpp index 609a30e19..4cfa9dab2 100644 --- a/mailnews/imap/src/nsImapProtocol.cpp +++ b/mailnews/imap/src/nsImapProtocol.cpp @@ -5626,6 +5626,7 @@ void nsImapProtocol::InitPrefAuthMethods(int32_t authMethodPrefValue) } +#ifdef MOZ_MAILNEWS_OAUTH2 if (m_prefAuthMethods & kHasXOAuth2Capability) mOAuth2Support = new mozilla::mailnews::OAuth2ThreadHelper(aServer); @@ -5633,6 +5634,7 @@ void nsImapProtocol::InitPrefAuthMethods(int32_t authMethodPrefValue) if (m_prefAuthMethods & kHasXOAuth2Capability && (!mOAuth2Support || !mOAuth2Support->SupportsOAuth2())) m_prefAuthMethods &= ~kHasXOAuth2Capability; +#endif NS_ASSERTION(m_prefAuthMethods != kCapabilityUndefined, "IMAP: InitPrefAuthMethods() didn't work"); |