WebView Tools: fix issue when processes match substring
The record_netlog.py previously had a false positive when the package of interest was a substring of a running process (ex. "com.foo" and there's a process named "com.foo.persistent"). Substring matching was not intended, so switch to GetApplicationPids() which does not perform substring matches. Searching for exact package names usually suffices (and this is just a best effort attempt to detect if the app is running), so we should just minimize the false positive rate. Test: Try with "com.google.android.gm" when "com.google.android.gm.persistent" is running Change-Id: I3204131aaaf53df9d7972f8bce37602dfd8324d2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1820091Reviewed-by:Andrew Luo <aluo@chromium.org> Commit-Queue: Nate Fischer <ntfschr@chromium.org> Cr-Commit-Position: refs/heads/master@{#699907}
Showing
Please register or sign in to comment