OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "base/command_line.h" |
| 6 #include "google_apis/drive/drive_switches.h" |
| 7 |
| 8 namespace google_apis { |
| 9 namespace { |
| 10 // Enables or disables Team Drives integration. |
| 11 constexpr char kEnableTeamDrives[] = "team-drives"; |
| 12 |
| 13 } |
| 14 |
| 15 TeamDrivesIntegrationStatus GetTeamDrivesIntegrationSwitch() { |
| 16 return base::CommandLine::ForCurrentProcess()->HasSwitch(kEnableTeamDrives) ? |
| 17 TEAM_DRIVES_INTEGRATION_ENABLED : TEAM_DRIVES_INTEGRATION_DISABLED; |
| 18 } |
| 19 |
| 20 } // namespace google_apis |
OLD | NEW |