Index: components/crash/content/app/run_as_crashpad_handler_win.h |
diff --git a/components/crash/content/app/run_as_crashpad_handler_win.h b/components/crash/content/app/run_as_crashpad_handler_win.h |
index 8bed61093af320b6871c9650e73060e6dd2a69bc..ade72a01db994c80bdd0c50eba7cc7d22522c980 100644 |
--- a/components/crash/content/app/run_as_crashpad_handler_win.h |
+++ b/components/crash/content/app/run_as_crashpad_handler_win.h |
@@ -12,10 +12,15 @@ class CommandLine; |
namespace crash_reporter { |
// Helper for running an embedded copy of crashpad_handler. Searches for and |
-// removes --switches::kProcessType=xyz arguments in the command line, and all |
+// removes --(process_type_switch)=xyz arguments in the command line, and all |
// options starting with '/' (for "/prefetch:N"), and then runs |
// crashpad::HandlerMain with the remaining arguments. |
-int RunAsCrashpadHandler(const base::CommandLine& command_line); |
+// |
+// Normally, pass switches::kProcessType for process_type_switch. It's accepted |
+// as a parameter because this component does not have access to content/, where |
+// that variable lives. |
+int RunAsCrashpadHandler(const base::CommandLine& command_line, |
+ const char* process_type_switch); |
} // namespace crash_reporter |