| Index: storage/common/fileapi/file_system_util.cc
|
| diff --git a/storage/common/fileapi/file_system_util.cc b/storage/common/fileapi/file_system_util.cc
|
| index 1116fcd563118eaf1b97315c2cd83d5bd964f8a6..16d6acaa674498854006d100c6ec94ca755e3e6b 100644
|
| --- a/storage/common/fileapi/file_system_util.cc
|
| +++ b/storage/common/fileapi/file_system_util.cc
|
| @@ -172,7 +172,7 @@ bool ParseFileSystemSchemeURL(const GURL& url,
|
|
|
| // A path of the inner_url contains only mount type part (e.g. "/temporary").
|
| DCHECK(url.inner_url());
|
| - std::string inner_path = url.inner_url()->path();
|
| + base::StringPiece inner_path = url.inner_url()->path();
|
| for (size_t i = 0; i < arraysize(kValidTypes); ++i) {
|
| if (inner_path == kValidTypes[i].dir) {
|
| file_system_type = kValidTypes[i].type;
|
| @@ -183,10 +183,11 @@ bool ParseFileSystemSchemeURL(const GURL& url,
|
| if (file_system_type == kFileSystemTypeUnknown)
|
| return false;
|
|
|
| - std::string path = net::UnescapeURLComponent(url.path(),
|
| + std::string path = net::UnescapeURLComponent(
|
| + url.path().as_string(),
|
| net::UnescapeRule::SPACES | net::UnescapeRule::PATH_SEPARATORS |
|
| - net::UnescapeRule::URL_SPECIAL_CHARS_EXCEPT_PATH_SEPARATORS |
|
| - net::UnescapeRule::SPOOFING_AND_CONTROL_CHARS);
|
| + net::UnescapeRule::URL_SPECIAL_CHARS_EXCEPT_PATH_SEPARATORS |
|
| + net::UnescapeRule::SPOOFING_AND_CONTROL_CHARS);
|
|
|
| // Ensure the path is relative.
|
| while (!path.empty() && path[0] == '/')
|
|
|