Index: chrome/browser/drive/drive_api_util.cc |
diff --git a/chrome/browser/drive/drive_api_util.cc b/chrome/browser/drive/drive_api_util.cc |
index 8a2569dd38400946d268990952c14c1f288785d3..b6b35e9af9f766ed56c8a0d993deb73d4dd2dbab 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()); |