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

Unified Diff: chrome/app/breakpad_win.cc

Issue 7981038: [windows] Filter --flag-switches-begin and --flag-switches-end from being sent in the breakpad ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix indent Created 9 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/breakpad_win.cc
===================================================================
--- chrome/app/breakpad_win.cc (revision 101855)
+++ chrome/app/breakpad_win.cc (working copy)
@@ -119,7 +119,15 @@
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(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698