From 73cdfdcf32a2bbd594e26281a0cd427c7c15fa86 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Tue, 12 Nov 2019 20:13:48 -0500 Subject: Issue #1258 - Follow up to Part 8: Ifdef MailNews OAuth2 Support --- mailnews/imap/src/nsImapProtocol.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mailnews/imap/src') 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"); -- cgit v1.2.3