Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Unified Diff: google_apis/drive/drive_switches.cc

Issue 2693093002: Fetch file metadata of files under Team Drives. (Closed)
Patch Set: Rename the enum to TeamDrivesIntegrationStatus to be more descriptive. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « google_apis/drive/drive_switches.h ('k') | google_apis/drive/files_list_request_runner_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..581e06804aa5c47580efca5f1e5cca69f87cceaf
--- /dev/null
+++ b/google_apis/drive/drive_switches.cc
@@ -0,0 +1,20 @@
+// 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";
+
+}
+
+TeamDrivesIntegrationStatus GetTeamDrivesIntegrationSwitch() {
+ return base::CommandLine::ForCurrentProcess()->HasSwitch(kEnableTeamDrives) ?
+ TEAM_DRIVES_INTEGRATION_ENABLED : TEAM_DRIVES_INTEGRATION_DISABLED;
+}
+
+} // namespace google_apis
« no previous file with comments | « google_apis/drive/drive_switches.h ('k') | google_apis/drive/files_list_request_runner_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698