| Index: chrome/common/extensions/extension_file_util.cc
|
| diff --git a/chrome/common/extensions/extension_file_util.cc b/chrome/common/extensions/extension_file_util.cc
|
| index 4c2fbb00783500b17dc3a91adca890e73b2caab6..dea37d465ac1e68db73ab8fedbc1c5ad821d74f7 100644
|
| --- a/chrome/common/extensions/extension_file_util.cc
|
| +++ b/chrome/common/extensions/extension_file_util.cc
|
| @@ -492,11 +492,11 @@ base::FilePath ExtensionResourceURLToFilePath(const GURL& url,
|
| return base::FilePath();
|
|
|
| base::FilePath path = root.AppendASCII(host).Append(relative_path);
|
| - if (!file_util::PathExists(path) ||
|
| - !file_util::AbsolutePath(&path) ||
|
| - !root.IsParent(path)) {
|
| + if (!file_util::PathExists(path))
|
| + return base::FilePath();
|
| + path = path.AsAbsolute();
|
| + if (path.empty() || !root.IsParent(path))
|
| return base::FilePath();
|
| - }
|
| return path;
|
| }
|
|
|
|
|