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

Unified Diff: extensions/browser/api/web_request/web_request_api.cc

Issue 1632963002: webRequest: Check weak ptr before dispatching event (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: extensions/browser/api/web_request/web_request_api.cc
diff --git a/extensions/browser/api/web_request/web_request_api.cc b/extensions/browser/api/web_request/web_request_api.cc
index 76db07fe55227c27b68a4d37a37fc19722873318..532e43d266d8d7e620c459d6aba532fdb0d36a71 100644
--- a/extensions/browser/api/web_request/web_request_api.cc
+++ b/extensions/browser/api/web_request/web_request_api.cc
@@ -1072,6 +1072,9 @@ void ExtensionWebRequestEventRouter::DispatchEventToListeners(
continue;
}
+ if (!listener->ipc_sender.get())
+ continue;
+
// Filter out the optional keys that this listener didn't request.
scoped_ptr<base::ListValue> args_filtered(new base::ListValue);
args_filtered->Append(
« 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