summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2019-11-12 20:13:48 -0500
committerMatt A. Tobin <email@mattatobin.com>2019-11-12 20:13:48 -0500
commit73cdfdcf32a2bbd594e26281a0cd427c7c15fa86 (patch)
tree5f3f670f0515137484349d16c1b254e06297db4a
parent6d6759a7813062768cbbabbef11341e28e61991b (diff)
downloadUXP-73cdfdcf32a2bbd594e26281a0cd427c7c15fa86.tar
UXP-73cdfdcf32a2bbd594e26281a0cd427c7c15fa86.tar.gz
UXP-73cdfdcf32a2bbd594e26281a0cd427c7c15fa86.tar.lz
UXP-73cdfdcf32a2bbd594e26281a0cd427c7c15fa86.tar.xz
UXP-73cdfdcf32a2bbd594e26281a0cd427c7c15fa86.zip
Issue #1258 - Follow up to Part 8: Ifdef MailNews OAuth2 Support
-rw-r--r--mailnews/imap/src/nsImapProtocol.cpp2
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");