diff options
author | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-11 13:32:37 +0000 |
---|---|---|
committer | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-11 13:32:37 +0000 |
commit | 8d5d7bbc01906a2f4c711185c4a864a2b0b0dd6c (patch) | |
tree | 98e4c493a63bb3760347e371c58a168f24e0ef1b /net/base/net_util.cc | |
parent | ef36c74c2e00d7559fd30eda9b7264e2777bb5fe (diff) | |
download | chromium_src-8d5d7bbc01906a2f4c711185c4a864a2b0b0dd6c.zip chromium_src-8d5d7bbc01906a2f4c711185c4a864a2b0b0dd6c.tar.gz chromium_src-8d5d7bbc01906a2f4c711185c4a864a2b0b0dd6c.tar.bz2 |
Unfork the code path for loading net resources on mac, ie-put it back inline
with win/linux.
Review URL: http://codereview.chromium.org/43044
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11439 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/net_util.cc')
-rw-r--r-- | net/base/net_util.cc | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/net/base/net_util.cc b/net/base/net_util.cc index 3bad60b..f16ab2e 100644 --- a/net/base/net_util.cc +++ b/net/base/net_util.cc @@ -38,6 +38,7 @@ #include "base/sys_string_conversions.h" #include "base/time.h" #include "base/time_format.h" +#include "grit/net_resources.h" #include "googleurl/src/gurl.h" #include "googleurl/src/url_canon.h" #include "googleurl/src/url_parse.h" @@ -49,9 +50,6 @@ #include "net/base/base64.h" #include "unicode/datefmt.h" -#if !defined(OS_MACOSX) -#include "grit/net_resources.h" -#endif using base::Time; @@ -815,22 +813,11 @@ std::string CanonicalizeHost(const std::wstring& host, bool* is_ip_address) { } std::string GetDirectoryListingHeader(const std::string& title) { -#if defined(OS_WIN) || defined(OS_LINUX) static const StringPiece header(NetModule::GetResource(IDR_DIR_HEADER_HTML)); if (header.empty()) { NOTREACHED() << "expected resource not found"; } std::string result(header.data(), header.size()); -#elif defined(OS_MACOSX) - // TODO(estade): Temporary hack. Remove these platform #ifdefs when we - // have implemented resources for OSX. - LOG(INFO) << "FIXME: hacked resource loading"; - FilePath path; - PathService::Get(base::DIR_EXE, &path); - path = path.Append("../../net/base/dir_header.html"); - std::string result; - file_util::ReadFileToString(path.ToWStringHack(), &result); -#endif result.append("<script>start("); string_escape::JavascriptDoubleQuote(title, true, &result); |