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

Unified Diff: extensions/common/file_util.cc

Issue 2574763003: Remove chrome-extension-resource:// scheme (Closed)
Patch Set: Remove BUILD reference to resources/extension outdir. Created 4 years 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 | « extensions/common/file_util.h ('k') | extensions/common/file_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/file_util.cc
diff --git a/extensions/common/file_util.cc b/extensions/common/file_util.cc
index 4bc1b5deb27dc8769580cf21105ff9845181e56e..96982d064d9f9f43815f44b00f34fc298902839a 100644
--- a/extensions/common/file_util.cc
+++ b/extensions/common/file_util.cc
@@ -460,28 +460,6 @@ base::FilePath ExtensionURLToRelativeFilePath(const GURL& url) {
return path;
}
-base::FilePath ExtensionResourceURLToFilePath(const GURL& url,
- const base::FilePath& root) {
- std::string host = net::UnescapeURLComponent(
- url.host(),
- net::UnescapeRule::SPACES |
- net::UnescapeRule::URL_SPECIAL_CHARS_EXCEPT_PATH_SEPARATORS);
- if (host.empty())
- return base::FilePath();
-
- base::FilePath relative_path = ExtensionURLToRelativeFilePath(url);
- if (relative_path.empty())
- return base::FilePath();
-
- base::FilePath path = root.AppendASCII(host).Append(relative_path);
- if (!base::PathExists(path))
- return base::FilePath();
- path = base::MakeAbsoluteFilePath(path);
- if (path.empty() || !root.IsParent(path))
- return base::FilePath();
- return path;
-}
-
bool ValidateExtensionIconSet(const ExtensionIconSet& icon_set,
const Extension* extension,
int error_message_id,
« no previous file with comments | « extensions/common/file_util.h ('k') | extensions/common/file_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698