| Index: chrome/browser/google_apis/drive_api_util.cc
|
| diff --git a/chrome/browser/google_apis/drive_api_util.cc b/chrome/browser/google_apis/drive_api_util.cc
|
| index c8f03d4f242b145619c93c845f425816f0f63ed1..10597c3c7e5fe870bcee90b711ba50f4555fc93f 100644
|
| --- a/chrome/browser/google_apis/drive_api_util.cc
|
| +++ b/chrome/browser/google_apis/drive_api_util.cc
|
| @@ -5,6 +5,7 @@
|
| #include "chrome/browser/google_apis/drive_api_util.h"
|
|
|
| #include "base/command_line.h"
|
| +#include "base/string_util.h"
|
| #include "chrome/browser/google_apis/drive_switches.h"
|
|
|
| namespace google_apis {
|
| @@ -16,4 +17,16 @@ bool IsDriveV2ApiEnabled() {
|
| }
|
|
|
| } // namespace util
|
| +
|
| +namespace drive {
|
| +namespace util {
|
| +
|
| +std::string EscapeQueryStringValue(const std::string& str) {
|
| + std::string result;
|
| + ReplaceChars(str, "'", "\\'", &result);
|
| + return result;
|
| +}
|
| +
|
| +} // namespace util
|
| +} // namespace drive
|
| } // namespace google_apis
|
|
|