Chromium Code Reviews| 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..c36fdb09c115567f29a556e45325a73cdce8d4a0 |
| --- /dev/null |
| +++ b/google_apis/drive/drive_switches.cc |
| @@ -0,0 +1,17 @@ |
| +// Copyright (c) 2017 The Chromium Authors. All rights reserved. |
|
hashimoto
2017/02/21 10:19:10
nit: No "(c)" needed.
yamaguchi
2017/02/22 02:07:52
Done.
|
| +// 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 kEnableTeamDrives[] = "team-drives"; |
|
hashimoto
2017/02/21 10:19:10
1. Use constexpr.
2. This constant is only referen
yamaguchi
2017/02/22 02:07:52
Done.
|
| + |
| +bool IsTeamDrivesEnabled() { |
| + return base::CommandLine::ForCurrentProcess()->HasSwitch(kEnableTeamDrives); |
| +} |
| + |
| +} // namespace google_apis |