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

Unified Diff: chrome/browser/drive/drive_api_util.cc

Issue 166273011: Remove --enablde-drive-v2-api flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/drive/drive_api_util.h ('k') | chrome/browser/drive/drive_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « chrome/browser/drive/drive_api_util.h ('k') | chrome/browser/drive/drive_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698