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

Unified Diff: webkit/support/webkit_support.cc

Issue 11366024: DRT should handle relative path arguments. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/support/webkit_support.cc
diff --git a/webkit/support/webkit_support.cc b/webkit/support/webkit_support.cc
index 97b963d03d45be91e4c3c9cb6050038e09918296..16e277f7832901812c73270d170851649172201c 100644
--- a/webkit/support/webkit_support.cc
+++ b/webkit/support/webkit_support.cc
@@ -636,10 +636,12 @@ WebURL CreateURLForPathOrURL(const std::string& path_or_url_in_nativemb) {
if (url.is_valid() && url.has_scheme())
return WebURL(url);
#if defined(OS_WIN)
- return net::FilePathToFileURL(FilePath(wide_path_or_url));
+ FilePath path(wide_path_or_url);
#else
- return net::FilePathToFileURL(FilePath(path_or_url_in_nativemb));
+ FilePath path(path_or_url_in_nativemb);
#endif
+ file_util::AbsolutePath(&path);
+ return net::FilePathToFileURL(path);
}
WebURL RewriteLayoutTestsURL(const std::string& utf8_url) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698