Index: google_apis/drive/drive_switches.cc |
diff --git a/google_apis/drive/drive_switches.cc b/google_apis/drive/drive_switches.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e070bc31b761e32841adeee1d700b25fe53c37a4 |
--- /dev/null |
+++ b/google_apis/drive/drive_switches.cc |
@@ -0,0 +1,19 @@ |
+// 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 { |
+namespace { |
+// Enables or disables Team Drives integration. |
+constexpr char kEnableTeamDrives[] = "team-drives"; |
+ |
+} |
+ |
+bool IsTeamDrivesEnabled() { |
+ return base::CommandLine::ForCurrentProcess()->HasSwitch(kEnableTeamDrives); |
+} |
+ |
+} // namespace google_apis |