Commit 0b8522c2 authored by eroman@chromium.org's avatar eroman@chromium.org

[windows] Filter --flag-switches-begin and --flag-switches-end from being sent...

[windows] Filter --flag-switches-begin and --flag-switches-end from being sent in the breakpad metadata.

Review URL: http://codereview.chromium.org/7981038

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102249 0039d316-1c4b-4281-b951-d872f2087c98
parent ef4cdfaf
...@@ -119,7 +119,15 @@ bool IsBoringCommandLineSwitch(const std::wstring& flag) { ...@@ -119,7 +119,15 @@ bool IsBoringCommandLineSwitch(const std::wstring& flag) {
StartsWith(flag, L"--plugin-path=", true) || StartsWith(flag, L"--plugin-path=", true) ||
// This is too big so we end up truncating it anyway. // This is too big so we end up truncating it anyway.
StartsWith(flag, L"--force-fieldtest=", true); StartsWith(flag, L"--force-fieldtest=", true) ||
// These surround the flags that were added by about:flags, it lets
// you distinguish which flags were added manually via the command
// line versus those added through about:flags. For the most part
// we don't care how an option was enabled, so we strip these.
// (If you need to know can always look at the PEB).
flag == L"--flag-switches-begin" ||
flag == L"--flag-switches-end";
} }
extern "C" void __declspec(dllexport) __cdecl SetCommandLine( extern "C" void __declspec(dllexport) __cdecl SetCommandLine(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment