diff options
author | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-22 07:39:38 +0000 |
---|---|---|
committer | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-22 07:39:38 +0000 |
commit | 0b8522c25e36d2c7d31dafdd102b08c34e60a382 (patch) | |
tree | f127177283da5234a075811e5c087e9f321c6447 /chrome/app/breakpad_win.cc | |
parent | ef4cdfaf09e67e83107d0ace843155fbc6f5d688 (diff) | |
download | chromium_src-0b8522c25e36d2c7d31dafdd102b08c34e60a382.zip chromium_src-0b8522c25e36d2c7d31dafdd102b08c34e60a382.tar.gz chromium_src-0b8522c25e36d2c7d31dafdd102b08c34e60a382.tar.bz2 |
[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
Diffstat (limited to 'chrome/app/breakpad_win.cc')
-rw-r--r-- | chrome/app/breakpad_win.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/chrome/app/breakpad_win.cc b/chrome/app/breakpad_win.cc index 8cc5ed4..99735fd 100644 --- a/chrome/app/breakpad_win.cc +++ b/chrome/app/breakpad_win.cc @@ -119,7 +119,15 @@ bool IsBoringCommandLineSwitch(const std::wstring& flag) { StartsWith(flag, L"--plugin-path=", true) || // 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( |