| // Copyright 2017 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 "base/command_line.h" |
| #include "google_apis/drive/drive_switches.h" |
| |
| namespace google_apis { |
| // Enables or disables Team Drives integration. |
| const char kDisableTeamDrives[] = "disable-team-drives"; |
| |
| TeamDrivesIntegrationStatus GetTeamDrivesIntegrationSwitch() { |
| return base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableTeamDrives) |
| ? TEAM_DRIVES_INTEGRATION_DISABLED |
| : TEAM_DRIVES_INTEGRATION_ENABLED; |
| } |
| |
| } // namespace google_apis |