summaryrefslogtreecommitdiff
path: root/mailnews
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
commitf8d7abc5e19ef7d09a0296073c607b3ac780e2d9 (patch)
tree5f3f670f0515137484349d16c1b254e06297db4a /mailnews
parent9a6accfa0367d87439ad5fcba4f8f8a2616ab749 (diff)
downloaduxp-f8d7abc5e19ef7d09a0296073c607b3ac780e2d9.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.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/mailnews/imap/src/nsImapProtocol.cpp b/mailnews/imap/src/nsImapProtocol.cpp
index 609a30e192..4cfa9dab29 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");