Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7698)

Unified Diff: chrome/plugin/plugin_main.cc

Issue 17426: remove chrome dependencies from win sandboxing headers. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/plugin/plugin_main.cc
===================================================================
--- chrome/plugin/plugin_main.cc (revision 7732)
+++ chrome/plugin/plugin_main.cc (working copy)
@@ -8,14 +8,18 @@
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/logging_chrome.h"
+#include "chrome/common/main_function_params.h"
#include "chrome/common/win_util.h"
#include "chrome/plugin/plugin_process.h"
#include "chrome/test/injection_test_dll.h"
#include "sandbox/src/sandbox.h"
// mainline routine for running as the plugin process
-int PluginMain(CommandLine &parsed_command_line,
- sandbox::TargetServices* target_services) {
+int PluginMain(const MainFunctionParams& parameters) {
+ CommandLine& parsed_command_line = parameters.command_line_;
+ sandbox::TargetServices* target_services =
+ parameters.sandbox_info_.TargetServices();
+
// The main thread of the plugin services IO.
MessageLoopForIO main_message_loop;
std::wstring app_name = chrome::kBrowserAppName;

Powered by Google App Engine
This is Rietveld 408576698