summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net/url_fixer_upper.h
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-21 16:45:38 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-21 16:45:38 +0000
commit762c554314d15ac62e997758d7a4f8e0e35d3fce (patch)
tree3ab1f8b3be29c82f00e63b2e777edc8aea036087 /chrome/browser/net/url_fixer_upper.h
parent631bad00c1230ed49bda8ccfdc451114dee99cf4 (diff)
downloadchromium_src-762c554314d15ac62e997758d7a4f8e0e35d3fce.zip
chromium_src-762c554314d15ac62e997758d7a4f8e0e35d3fce.tar.gz
chromium_src-762c554314d15ac62e997758d7a4f8e0e35d3fce.tar.bz2
posix: ~ should be considered a path character in the omnibox
We expand it to $HOME or the appropriate /home/foobar. BUG=18200 TEST=Extended the unit test with test cases. Review URL: http://codereview.chromium.org/300026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29657 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net/url_fixer_upper.h')
-rw-r--r--chrome/browser/net/url_fixer_upper.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/net/url_fixer_upper.h b/chrome/browser/net/url_fixer_upper.h
index 5bd7fef..d3db746 100644
--- a/chrome/browser/net/url_fixer_upper.h
+++ b/chrome/browser/net/url_fixer_upper.h
@@ -61,6 +61,10 @@ namespace URLFixerUpper {
std::wstring FixupRelativeFile(const std::wstring& base_dir,
const std::wstring& text);
+ // For paths like ~, we use $HOME for the current user's home
+ // directory. For tests, we allow our idea of $HOME to be overriden
+ // by this variable.
+ extern const char* home_directory_override;
};
#endif // #ifndef CHROME_BROWSER_NET_URL_FIXER_UPPER_H_