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

Unified Diff: chrome/browser/chromeos/drive/file_system_util.cc

Issue 23526048: Support URL fragment resolution againt non-hierarchical schemes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years, 3 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 | « no previous file | chrome/browser/extensions/api/identity/gaia_web_auth_flow.cc » ('j') | url/gurl.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drive/file_system_util.cc
diff --git a/chrome/browser/chromeos/drive/file_system_util.cc b/chrome/browser/chromeos/drive/file_system_util.cc
index db13b712cb4139e828fd7661cf43ce27b8ad0460..0396cca02a32ac21b0d6ca2b1e0e43f2785be0b7 100644
--- a/chrome/browser/chromeos/drive/file_system_util.cc
+++ b/chrome/browser/chromeos/drive/file_system_util.cc
@@ -212,7 +212,7 @@ base::FilePath DriveURLToFilePath(const GURL& url) {
if (!url.is_valid() || url.scheme() != chrome::kDriveScheme)
return base::FilePath();
std::string path_string = net::UnescapeURLComponent(
- url.path(), net::UnescapeRule::NORMAL);
+ url.Content(), net::UnescapeRule::NORMAL);
return base::FilePath::FromUTF8Unsafe(path_string);
}
@@ -274,7 +274,7 @@ base::FilePath ExtractDrivePathFromFileSystemUrl(
const fileapi::FileSystemURL& url) {
if (!url.is_valid() || url.type() != fileapi::kFileSystemTypeDrive)
return base::FilePath();
- return ExtractDrivePath(url.path());
+ return ExtractDrivePath(url.Content());
}
base::FilePath GetCacheRootPath(Profile* profile) {
« no previous file with comments | « no previous file | chrome/browser/extensions/api/identity/gaia_web_auth_flow.cc » ('j') | url/gurl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698