提交 ff9af06e 编写于 作者: J John McCutchan

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

上级 31eae91c
......@@ -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());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册