Fix Loader::Fetch to use the file path and not the uri.

This commit is contained in:
John McCutchan
2016-04-05 12:52:12 -07:00
parent 9426588891
commit 83f0b02a4c

View File

@@ -161,7 +161,7 @@ std::string Loader::GetFilePathForFileURL(std::string url) {
}
std::string Loader::Fetch(const std::string& url) {
base::FilePath path(url);
base::FilePath path(GetFilePathForURL(url));
std::string source;
if (!base::ReadFileToString(path, &source)) {
fprintf(stderr, "error: Unable to find Dart library '%s'.\n", url.c_str());