Commit 41fe5a9d authored by Roger Tawa's avatar Roger Tawa Committed by Commit Bot

Hard code enterprise connectors service proviers config for GA.

Bug: 1069037
Change-Id: Id0144b4719af238dfee3070b55b93b612693afe9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2216272Reviewed-by: default avatarDominique Fauteux-Chapleau <domfc@chromium.org>
Commit-Queue: Roger Tawa <rogerta@chromium.org>
Cr-Commit-Position: refs/heads/master@{#771877}
parent 82246466
...@@ -22,6 +22,76 @@ namespace enterprise_connectors { ...@@ -22,6 +22,76 @@ namespace enterprise_connectors {
const base::Feature kEnterpriseConnectorsEnabled{ const base::Feature kEnterpriseConnectorsEnabled{
"EnterpriseConnectorsEnabled", base::FEATURE_DISABLED_BY_DEFAULT}; "EnterpriseConnectorsEnabled", base::FEATURE_DISABLED_BY_DEFAULT};
const char kServiceProviderConfig[] = R"({
"version": "1",
"service_providers" : [
{
"name": "google",
"display_name": "Google Cloud",
"version": {
"1": {
"analysis": {
"url": "https://safebrowsing.google.com/safebrowsing/uploads/scan",
"supported_tags": [
{
"name": "malware",
"display_name": "Threat protection",
"mime_types": [
"application/vnd.microsoft.portable-executable",
"application/vnd.rar",
"application/x-msdos-program",
"application/zip"
],
"max_file_size": 52428800
},
{
"name": "dlp",
"display_name": "Sensitive data protection",
"mime_types": [
"application/gzip",
"application/msword",
"application/pdf",
"application/postscript",
"application/rtf",
"application/vnd.google-apps.document.internal",
"application/vnd.google-apps.spreadsheet.internal",
"application/vnd.ms-cab-compressed",
"application/vnd.ms-excel",
"application/vnd.ms-powerpoint",
"application/vnd.ms-xpsdocument",
"application/vnd.oasis.opendocument.text",
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"application/vnd.openxmlformats-officedocument.spreadsheetml.template",
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"application/vnd.openxmlformats-officedocument.wordprocessingml.template",
"application/vnd.ms-excel.sheet.macroenabled.12",
"application/vnd.ms-excel.template.macroenabled.12",
"application/vnd.ms-word.document.macroenabled.12",
"application/vnd.ms-word.template.macroenabled.12",
"application/vnd.rar",
"application/vnd.wordperfect",
"application/x-7z-compressed",
"application/x-bzip",
"application/x-bzip2",
"application/x-tar",
"application/zip",
"text/csv",
"text/plain"
],
"max_file_size": 52428800
}
]
},
"reporting": {
"url": "https://chromereporting-pa.googleapis.com/v1/events"
}
}
}
}
]
})";
namespace { namespace {
base::ListValue AllPatterns() { base::ListValue AllPatterns() {
......
...@@ -28,6 +28,12 @@ namespace enterprise_connectors { ...@@ -28,6 +28,12 @@ namespace enterprise_connectors {
// is disabled. // is disabled.
extern const base::Feature kEnterpriseConnectorsEnabled; extern const base::Feature kEnterpriseConnectorsEnabled;
// For the moment, service provider configurations are static and only support
// google endpoints. Therefore the configurtion is placed here directly.
// Once the configuation becomes more dynamic this static string will be
// removed and replaced with a service to keep it up to date.
extern const char kServiceProviderConfig[];
// Manages access to Connector policies. This class is responsible for caching // Manages access to Connector policies. This class is responsible for caching
// the Connector policies, validate them against approved service providers and // the Connector policies, validate them against approved service providers and
// provide a simple interface to them. // provide a simple interface to them.
......
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