| // Copyright 2020 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "chrome/browser/enterprise/connectors/common.h" |
| #include "chrome/browser/enterprise/connectors/connectors_prefs.h" |
| |
| namespace enterprise_connectors { |
| |
| AnalysisSettings::AnalysisSettings() = default; |
| AnalysisSettings::AnalysisSettings(AnalysisSettings&&) = default; |
| AnalysisSettings& AnalysisSettings::operator=(AnalysisSettings&&) = default; |
| AnalysisSettings::~AnalysisSettings() = default; |
| |
| ReportingSettings::ReportingSettings() = default; |
| ReportingSettings::ReportingSettings(ReportingSettings&&) = default; |
| ReportingSettings& ReportingSettings::operator=(ReportingSettings&&) = default; |
| ReportingSettings::~ReportingSettings() = default; |
| |
| const char* ConnectorPref(AnalysisConnector connector) { |
| switch (connector) { |
| case AnalysisConnector::BULK_DATA_ENTRY: |
| return kOnBulkDataEntryPref; |
| case AnalysisConnector::FILE_DOWNLOADED: |
| return kOnFileDownloadedPref; |
| case AnalysisConnector::FILE_ATTACHED: |
| return kOnFileAttachedPref; |
| } |
| } |
| |
| } // namespace enterprise_connectors |