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

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

Issue 1143333008: Getting rid of more webview memory leaks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Created 5 years, 6 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
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 f6c75274dca5baff22e2f25a09487a06a1055474..836cae30b30b683eaae41e98c64a865e55511a81 100644
--- a/extensions/browser/api/web_request/web_request_api.cc
+++ b/extensions/browser/api/web_request/web_request_api.cc
@@ -1346,7 +1346,6 @@ void ExtensionWebRequestEventRouter::RemoveEventListener(
void ExtensionWebRequestEventRouter::RemoveWebViewEventListeners(
void* browser_context,
- const std::string& extension_id,
int embedder_process_id,
int web_view_instance_id) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
@@ -1370,7 +1369,7 @@ void ExtensionWebRequestEventRouter::RemoveWebViewEventListeners(
for (const auto& listener : listeners_to_delete) {
RemoveEventListenerOnIOThread(
browser_context,
- extension_id,
+ listener.extension_id,
listener.sub_event_name,
listener.embedder_process_id,
listener.web_view_instance_id);
« no previous file with comments | « extensions/browser/api/web_request/web_request_api.h ('k') | extensions/browser/guest_view/web_view/web_view_guest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698