Index: chrome/browser/chromeos/gdata/gdata_util.cc |
diff --git a/chrome/browser/chromeos/gdata/gdata_util.cc b/chrome/browser/chromeos/gdata/gdata_util.cc |
index 5ac9e1334d1cd0fe7344b862ff48970343e2b7ac..e8be02fe04594bdb8877641227fe97cc5b8fe786 100644 |
--- a/chrome/browser/chromeos/gdata/gdata_util.cc |
+++ b/chrome/browser/chromeos/gdata/gdata_util.cc |
@@ -11,16 +11,14 @@ |
#include "base/basictypes.h" |
#include "base/bind.h" |
#include "base/bind_helpers.h" |
+#include "base/command_line.h" |
#include "base/file_path.h" |
#include "base/file_util.h" |
#include "base/json/json_reader.h" |
#include "base/logging.h" |
-#include "base/stringprintf.h" |
#include "base/string_util.h" |
+#include "base/stringprintf.h" |
#include "base/threading/sequenced_worker_pool.h" |
-#include "chrome/common/chrome_version_info.h" |
-#include "chrome/common/pref_names.h" |
-#include "chrome/common/url_constants.h" |
#include "chrome/browser/chromeos/gdata/gdata.pb.h" |
#include "chrome/browser/chromeos/gdata/gdata_file_system.h" |
#include "chrome/browser/chromeos/gdata/gdata_system_service.h" |
@@ -30,6 +28,10 @@ |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/ui/browser.h" |
#include "chrome/browser/ui/browser_finder.h" |
+#include "chrome/common/chrome_switches.h" |
+#include "chrome/common/chrome_version_info.h" |
+#include "chrome/common/pref_names.h" |
+#include "chrome/common/url_constants.h" |
#include "content/public/browser/browser_thread.h" |
#include "content/public/browser/child_process_security_policy.h" |
#include "net/base/escape.h" |
@@ -377,5 +379,11 @@ void ParseCacheFilePath(const FilePath& path, |
std::string(); |
} |
+bool IsDriveV2ApiEnabled() { |
+ static bool enabled = CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kEnableDriveV2Api); |
+ return enabled; |
satorux1
2012/07/10 18:10:33
Would be nice to create a separate patch that just
kochi
2012/07/11 09:43:27
Done.
https://chromiumcodereview.appspot.com/1069
|
+} |
+ |
} // namespace util |
} // namespace gdata |