diff options
author | kinaba@chromium.org <kinaba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-19 20:21:48 +0000 |
---|---|---|
committer | kinaba@chromium.org <kinaba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-19 20:21:48 +0000 |
commit | 0f9144c457b5dbee9c0b00019fdf4110767676c0 (patch) | |
tree | 604cec6e51dc743c7624d376219cf1d158f49dec /chrome/browser/drive | |
parent | 9a3ffffccb74b859c6a779aa6bff8e1c45877141 (diff) | |
download | chromium_src-0f9144c457b5dbee9c0b00019fdf4110767676c0.zip chromium_src-0f9144c457b5dbee9c0b00019fdf4110767676c0.tar.gz chromium_src-0f9144c457b5dbee9c0b00019fdf4110767676c0.tar.bz2 |
Remove --enablde-drive-v2-api flag.
This is a part of the flag clean up effort.
The flags is enabled by default for a while and working pretty well. We won't
go back any more.
BUG=344738
Review URL: https://codereview.chromium.org/166273011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252060 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/drive')
-rw-r--r-- | chrome/browser/drive/drive_api_util.cc | 17 | ||||
-rw-r--r-- | chrome/browser/drive/drive_api_util.h | 3 | ||||
-rw-r--r-- | chrome/browser/drive/drive_switches.cc | 14 | ||||
-rw-r--r-- | chrome/browser/drive/drive_switches.h | 16 |
4 files changed, 0 insertions, 50 deletions
diff --git a/chrome/browser/drive/drive_api_util.cc b/chrome/browser/drive/drive_api_util.cc index 8a2569d..b6b35e9 100644 --- a/chrome/browser/drive/drive_api_util.cc +++ b/chrome/browser/drive/drive_api_util.cc @@ -6,7 +6,6 @@ #include <string> -#include "base/command_line.h" #include "base/files/scoped_platform_file_closer.h" #include "base/logging.h" #include "base/md5.h" @@ -16,7 +15,6 @@ #include "base/strings/stringprintf.h" #include "base/strings/utf_string_conversions.h" #include "base/values.h" -#include "chrome/browser/drive/drive_switches.h" #include "content/public/browser/browser_thread.h" #include "google_apis/drive/drive_api_parser.h" #include "google_apis/drive/gdata_wapi_parser.h" @@ -149,21 +147,6 @@ std::string Identity(const std::string& resource_id) { return resource_id; } } // namespace -bool IsDriveV2ApiEnabled() { - const CommandLine* command_line = CommandLine::ForCurrentProcess(); - - // Enable Drive API v2 by default. - if (!command_line->HasSwitch(switches::kEnableDriveV2Api)) - return true; - - std::string value = - command_line->GetSwitchValueASCII(switches::kEnableDriveV2Api); - StringToLowerASCII(&value); - // The value must be "" or "true" for true, or "false" for false. - DCHECK(value.empty() || value == "true" || value == "false"); - return value != "false"; -} - std::string EscapeQueryStringValue(const std::string& str) { std::string result; result.reserve(str.size()); diff --git a/chrome/browser/drive/drive_api_util.h b/chrome/browser/drive/drive_api_util.h index 7cbcbac..324a46c 100644 --- a/chrome/browser/drive/drive_api_util.h +++ b/chrome/browser/drive/drive_api_util.h @@ -38,9 +38,6 @@ class ResourceList; namespace drive { namespace util { -// Returns true if Drive v2 API is enabled via commandline switch. -bool IsDriveV2ApiEnabled(); - // Escapes ' to \' in the |str|. This is designed to use for string value of // search parameter on Drive API v2. // See also: https://developers.google.com/drive/search-parameters diff --git a/chrome/browser/drive/drive_switches.cc b/chrome/browser/drive/drive_switches.cc deleted file mode 100644 index 0505a00..0000000 --- a/chrome/browser/drive/drive_switches.cc +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 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/drive/drive_switches.h" - -namespace drive { -namespace switches { - -// Enables Drive v2 API instead of Google Documents List API. -const char kEnableDriveV2Api[] = "enable-drive-v2-api"; - -} // namespace switches -} // namespace drive diff --git a/chrome/browser/drive/drive_switches.h b/chrome/browser/drive/drive_switches.h deleted file mode 100644 index 59282e4..0000000 --- a/chrome/browser/drive/drive_switches.h +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright 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. - -#ifndef CHROME_BROWSER_DRIVE_DRIVE_SWITCHES_H_ -#define CHROME_BROWSER_DRIVE_DRIVE_SWITCHES_H_ - -namespace drive { -namespace switches { - -extern const char kEnableDriveV2Api[]; - -} // namespace switches -} // namespace drive - -#endif // CHROME_BROWSER_DRIVE_DRIVE_SWITCHES_H_ |