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

Side by Side Diff: google_apis/drive/drive_switches.cc

Issue 2799603002: Process TeamDrive change in change list. (Closed)
Patch Set: Avoid crash when receiving TD deletion entry. Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/command_line.h" 5 #include "base/command_line.h"
6 #include "google_apis/drive/drive_switches.h" 6 #include "google_apis/drive/drive_switches.h"
7 7
8 namespace google_apis { 8 namespace google_apis {
9 namespace { 9 namespace {
10 // Enables or disables Team Drives integration. 10 // Enables or disables Team Drives integration.
11 constexpr char kEnableTeamDrives[] = "team-drives"; 11 constexpr char kEnableTeamDrives[] = "team-drives";
12 12
13 } 13 }
14 14
15 TeamDrivesIntegrationStatus GetTeamDrivesIntegrationSwitch() { 15 TeamDrivesIntegrationStatus GetTeamDrivesIntegrationSwitch() {
16 return base::CommandLine::ForCurrentProcess()->HasSwitch(kEnableTeamDrives) ? 16 return base::CommandLine::ForCurrentProcess()->HasSwitch(kEnableTeamDrives) ?
17 TEAM_DRIVES_INTEGRATION_ENABLED : TEAM_DRIVES_INTEGRATION_DISABLED; 17 TEAM_DRIVES_INTEGRATION_ENABLED : TEAM_DRIVES_INTEGRATION_DISABLED;
18 } 18 }
19 19
20 std::string GetTeamDrivesIntegrationSwitchName() {
21 return kEnableTeamDrives;
22 }
23
20 } // namespace google_apis 24 } // namespace google_apis
OLDNEW
« google_apis/drive/drive_switches.h ('K') | « google_apis/drive/drive_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698