OLD | NEW |
---|---|
(Empty) | |
1 // 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.
| |
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 | |
10 // Enables or disables Team Drives integration. | |
11 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.
| |
12 | |
13 bool IsTeamDrivesEnabled() { | |
14 return base::CommandLine::ForCurrentProcess()->HasSwitch(kEnableTeamDrives); | |
15 } | |
16 | |
17 } // namespace google_apis | |
OLD | NEW |