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

Unified Diff: shell/filename_util.h

Issue 868963002: Simplify resolution of mojo: URLs. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Comments Created 5 years, 11 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 | « shell/context.cc ('k') | shell/filename_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/filename_util.h
diff --git a/shell/filename_util.h b/shell/filename_util.h
index 10fa8fe0b51c5b1991a1a6218fa0b42470522364..4dae84a77cf8cd249afdfbfbf237bfb06730ec91 100644
--- a/shell/filename_util.h
+++ b/shell/filename_util.h
@@ -17,6 +17,10 @@ namespace mojo {
// may not be valid if the input is malformed.
GURL FilePathToFileURL(const base::FilePath& path);
+// This URL is going to be treated as a directory. Ensure there is a trailing
+// slash so that GURL.Resolve(...) works correctly.
+GURL AddTrailingSlashIfNeeded(const GURL& url);
+
} // namespace mojo
#endif // SHELL_FILENAME_UTIL_H_
« no previous file with comments | « shell/context.cc ('k') | shell/filename_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698