Index: chrome/common/child_process_logging_win.cc |
=================================================================== |
--- chrome/common/child_process_logging_win.cc (revision 100836) |
+++ chrome/common/child_process_logging_win.cc (working copy) |
@@ -39,6 +39,10 @@ |
// void __declspec(dllexport) __cdecl SetNumberOfViews. |
typedef void (__cdecl *MainSetNumberOfViews)(int); |
+// exported in breakpad_win.cc: |
+// void __declspec(dllexport) __cdecl SetCommandLineFromCurrent |
+typedef void (__cdecl *MainSetCommandLineFromCurrent)(void); |
+ |
void SetActiveURL(const GURL& url) { |
static MainSetActiveURL set_active_url = NULL; |
// note: benign race condition on set_active_url. |
@@ -145,6 +149,20 @@ |
UTF8ToUTF16(gpu_info.vertex_shader_version).c_str()); |
} |
+void SetCommandLineFromCurrent() { |
+ static MainSetCommandLineFromCurrent set_command_line = NULL; |
+ if (!set_command_line) { |
+ HMODULE exe_module = GetModuleHandle(chrome::kBrowserProcessExecutableName); |
+ if (!exe_module) |
+ return; |
+ set_command_line = reinterpret_cast<MainSetCommandLineFromCurrent>( |
+ GetProcAddress(exe_module, "SetCommandLineFromCurrent")); |
+ if (!set_command_line) |
+ return; |
+ } |
+ (set_command_line)(); |
+} |
+ |
void SetNumberOfViews(int number_of_views) { |
static MainSetNumberOfViews set_number_of_views = NULL; |
if (!set_number_of_views) { |