summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-22 21:05:47 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-22 21:05:47 +0000
commit64d50ed649d61c5b84b09369b091018f70547bf8 (patch)
tree32f25e3f4d6721d68f6ce553bc51172a218bb071 /chrome/renderer
parentdbf5e6c9053bf8e4c5fb08a1ca3005636380b5bb (diff)
downloadchromium_src-64d50ed649d61c5b84b09369b091018f70547bf8.zip
chromium_src-64d50ed649d61c5b84b09369b091018f70547bf8.tar.gz
chromium_src-64d50ed649d61c5b84b09369b091018f70547bf8.tar.bz2
Move FTP LIST parsing code to the renderer process.
TEST=none BUG=none Review URL: http://codereview.chromium.org/210027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26860 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/renderer_main.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/renderer/renderer_main.cc b/chrome/renderer/renderer_main.cc
index 48060c4..6c7f01b 100644
--- a/chrome/renderer/renderer_main.cc
+++ b/chrome/renderer/renderer_main.cc
@@ -20,11 +20,13 @@
#include "chrome/common/chrome_switches.h"
#include "chrome/common/logging_chrome.h"
#include "chrome/common/main_function_params.h"
+#include "chrome/common/net/net_resource_provider.h"
#include "chrome/renderer/renderer_main_platform_delegate.h"
#include "chrome/renderer/render_process.h"
#include "chrome/renderer/render_thread.h"
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
+#include "net/base/net_module.h"
#if defined(OS_LINUX)
#include "chrome/app/breakpad_linux.h"
@@ -86,6 +88,9 @@ int RendererMain(const MainFunctionParams& parameters) {
InitCrashReporter();
#endif
+ // Configure the network module so it has access to resources.
+ net::NetModule::SetResourceProvider(chrome_common_net::NetResourceProvider);
+
// This function allows pausing execution using the --renderer-startup-dialog
// flag allowing us to attach a debugger.
// Do not move this function down since that would mean we can't easily debug