diff options
author | pinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-09 20:28:44 +0000 |
---|---|---|
committer | pinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-09 20:28:44 +0000 |
commit | a1a130f7da9191abecf15b3c27e2aa7ee1faacb3 (patch) | |
tree | 3a9c6ad25ec53f05a4380ffac1a7932f66107a0d /chrome/renderer/renderer_main.cc | |
parent | fd26b925c589b600c7d12f55554ad1097bad6b87 (diff) | |
download | chromium_src-a1a130f7da9191abecf15b3c27e2aa7ee1faacb3.zip chromium_src-a1a130f7da9191abecf15b3c27e2aa7ee1faacb3.tar.gz chromium_src-a1a130f7da9191abecf15b3c27e2aa7ee1faacb3.tar.bz2 |
remove chrome dependencies from win sandboxing headers. Wrap sandbox code to
make the main routine a little cleaner. Unify the parameters of each of the "main" entry points so we can more easily abstract platform differences in the future. BUG=5323
Review URL: http://codereview.chromium.org/17426
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7825 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/renderer_main.cc')
-rw-r--r-- | chrome/renderer/renderer_main.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/renderer/renderer_main.cc b/chrome/renderer/renderer_main.cc index 5d633f6..476e4f7 100644 --- a/chrome/renderer/renderer_main.cc +++ b/chrome/renderer/renderer_main.cc @@ -13,6 +13,7 @@ #include "chrome/common/chrome_switches.h" #include "chrome/common/l10n_util.h" #include "chrome/common/logging_chrome.h" +#include "chrome/common/main_function_params.h" #include "chrome/common/resource_bundle.h" #include "chrome/renderer/render_process.h" #include "chrome/test/injection_test_dll.h" @@ -44,8 +45,11 @@ static void HandleRendererErrorTestParameters(const CommandLine& command_line) { } // mainline routine for running as the Rendererer process -int RendererMain(CommandLine &parsed_command_line, - sandbox::TargetServices* target_services) { +int RendererMain(const MainFunctionParams& parameters) { + CommandLine& parsed_command_line = parameters.command_line_; + sandbox::TargetServices* target_services = + parameters.sandbox_info_.TargetServices(); + StatsScope<StatsCounterTimer> startup_timer(chrome::Counters::renderer_main()); |