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

Unified Diff: components/feedback/anonymizer_tool.cc

Issue 2842263005: Scrub peripheral serial numbers from logs (Closed)
Patch Set: Created 3 years, 8 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 | components/feedback/anonymizer_tool_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/feedback/anonymizer_tool.cc
diff --git a/components/feedback/anonymizer_tool.cc b/components/feedback/anonymizer_tool.cc
index bc8a223cadae2fdf5f35ab84df433767305bebf6..f44dadf8ace8d1e4bd3a9b39b8e962e630d4e1bb 100644
--- a/components/feedback/anonymizer_tool.cc
+++ b/components/feedback/anonymizer_tool.cc
@@ -41,11 +41,12 @@ namespace {
// (?-s) turns off "dot matches newline" for the remainder of the regex.
// (?:regex) denotes non-capturing parentheses group.
const char* kCustomPatternsWithContext[] = {
- "(\\bCell ID: ')([0-9a-fA-F]+)(')", // ModemManager
- "(\\bLocation area code: ')([0-9a-fA-F]+)(')", // ModemManager
- "(?i-s)(\\bssid[= ]')(.+)(')", // wpa_supplicant
- "(?-s)(\\bSSID - hexdump\\(len=[0-9]+\\): )(.+)()", // wpa_supplicant
- "(?-s)(\\[SSID=)(.+?)(\\])", // shill
+ "(\\bCell ID: ')([0-9a-fA-F]+)(')", // ModemManager
+ "(\\bLocation area code: ')([0-9a-fA-F]+)(')", // ModemManager
+ "(?i-s)(\\bssid[= ]')(.+)(')", // wpa_supplicant
+ "(?-s)(\\bSSID - hexdump\\(len=[0-9]+\\): )(.+)()", // wpa_supplicant
+ "(?-s)(\\[SSID=)(.+?)(\\])", // shill
+ "(?i-s)(serial\\s*number\\s*:\\s*)([0-9a-zA-Z\\-]+)()", // Serial numbers
};
// Helper macro: Non capturing group
« no previous file with comments | « no previous file | components/feedback/anonymizer_tool_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698