Commit 56ef9360 authored by Owen W. Taylor's avatar Owen W. Taylor

Fix build with --disable-google-auth

With a recent change, GOOGLE_CLIENT_ID/SECRET were referenced even
with Google authentication disabled. Add an ifdef to avoid this.
(A larger section of the code is never hit with authentication
disabled; this is a minimal change to get the build working.)
parent 11a81858
......@@ -293,6 +293,7 @@ e_source_credentials_google_is_supported (void)
static gchar *
cpi_google_create_refresh_token_post_data (const gchar *refresh_token)
g_return_val_if_fail (refresh_token != NULL, NULL);
return soup_form_encode (
......@@ -301,6 +302,9 @@ cpi_google_create_refresh_token_post_data (const gchar *refresh_token)
"client_secret", GOOGLE_CLIENT_SECRET,
"grant_type", "refresh_token",
return NULL;
static void
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment