summaryrefslogtreecommitdiffstats
path: root/chrome/browser/google_apis/drive_api_util.cc
blob: c8f03d4f242b145619c93c845f425816f0f63ed1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright (c) 2012 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 "chrome/browser/google_apis/drive_api_util.h"

#include "base/command_line.h"
#include "chrome/browser/google_apis/drive_switches.h"

namespace google_apis {
namespace util {

bool IsDriveV2ApiEnabled() {
  return CommandLine::ForCurrentProcess()->HasSwitch(
      switches::kEnableDriveV2Api);
}

}  // namespace util
}  // namespace google_apis