summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_main.cc
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-11 18:47:24 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-11 18:47:24 +0000
commit698cccb1cd82f0b1a66b721a3a3b52fca870798c (patch)
tree548cf844da3fc0863248aa9f649cba3f2fb3809d /chrome/browser/browser_main.cc
parent11dfb0d72239468ef75fe9f228d0c36324ddfdd3 (diff)
downloadchromium_src-698cccb1cd82f0b1a66b721a3a3b52fca870798c.zip
chromium_src-698cccb1cd82f0b1a66b721a3a3b52fca870798c.tar.gz
chromium_src-698cccb1cd82f0b1a66b721a3a3b52fca870798c.tar.bz2
Fix directory listings in mac and linux by making sure the code
for loading the template is enabled and the resource exists. Review URL: http://codereview.chromium.org/42053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11462 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_main.cc')
-rw-r--r--chrome/browser/browser_main.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc
index 4b5ce2c..d2f03ba 100644
--- a/chrome/browser/browser_main.cc
+++ b/chrome/browser/browser_main.cc
@@ -46,6 +46,8 @@
#include "chrome/common/resource_bundle.h"
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
+#include "grit/net_resources.h"
+#include "net/base/net_module.h"
#if defined(OS_POSIX)
// TODO(port): get rid of this include. It's used just to provide declarations
@@ -84,7 +86,6 @@
#include "chrome/installer/util/shell_util.h"
#include "chrome/installer/util/version.h"
#include "chrome/views/accelerator_handler.h"
-#include "net/base/net_module.h"
#include "net/base/net_util.h"
#include "net/base/sdch_manager.h"
#include "net/base/winsock_init.h"
@@ -94,7 +95,6 @@
#endif // defined(OS_WIN)
#if !defined(OS_MACOSX)
-#include "grit/net_resources.h"
#include "chrome/browser/process_singleton.h"
#endif
@@ -134,7 +134,6 @@ void HandleErrorTestParameters(const CommandLine& command_line) {
}
}
-#if defined(OS_WIN) || defined(OS_LINUX)
// The net module doesn't have access to this HTML or the strings that need to
// be localized. The Chrome locale will never change while we're running, so
// it's safe to have a static string that we always return a pointer into.
@@ -173,7 +172,6 @@ StringPiece NetResourceProvider(int key) {
return ResourceBundle::GetSharedInstance().GetRawDataResource(key);
}
-#endif // defined(OS_WIN) || defined(OS_LINUX)
void RunUIMessageLoop(BrowserProcess* browser_process) {
#if defined(OS_WIN)
@@ -455,10 +453,10 @@ int BrowserMain(const MainFunctionParams& parameters) {
// file thread to be run sometime later. If this is the first run we record
// the installation event.
RLZTracker::InitRlzDelayed(base::DIR_MODULE, is_first_run);
+#endif
// Config the network module so it has access to resources.
net::NetModule::SetResourceProvider(NetResourceProvider);
-#endif
// Register our global network handler for chrome-ui:// and
// chrome-extension:// URLs.