1 // Copyright 2023 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef GOOGLE_APIS_CREDENTIALS_MODE_H_
6 #define GOOGLE_APIS_CREDENTIALS_MODE_H_
8 #include "base/component_export.h"
9 #include "services/network/public/mojom/fetch_api.mojom-forward.h"
11 namespace google_apis {
13 // Returns the CredentialsMode that should be used for requests to Gaia. It
14 // returns kCredentialsMode::kOmit or kOmitBug_775438_Workaround depending on a
15 // variations-controlled feature toggle.
16 COMPONENT_EXPORT(GOOGLE_APIS)
17 network::mojom::CredentialsMode GetOmitCredentialsModeForGaiaRequests();
19 } // namespace google_apis
21 #endif // GOOGLE_APIS_CREDENTIALS_MODE_H_